defect 4152: fix a typo which was introduced when support rh7 that using -N for dracut command

This commit is contained in:
daniceexi 2014-06-04 07:37:20 -04:00
parent ef3f29352f
commit d5e6982054

View File

@ -928,7 +928,7 @@ sub mkinitrd_dracut {
if ($dracutver > "033") {
$additional_options .= " -N";
}
system("chroot $rootimg_dir dracut -N $additional_options -f /tmp/initrd.$$.gz $kernelver");
system("chroot $rootimg_dir dracut $additional_options -f /tmp/initrd.$$.gz $kernelver");
print "the initial ramdisk for $mode is generated successfully.\n";
move("$rootimg_dir/tmp/initrd.$$.gz", "$destdir/initrd-$mode.gz");
}