defect 4152: fix a typo which was introduced when support rh7 that using -N for dracut command
This commit is contained in:
parent
ef3f29352f
commit
d5e6982054
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user