initrdscripts: Fix the logic to get disk size