we need to assign the $kernelver value to dracut;

by default, dracut will use the kernel which is running on the hosts, which maight be not the same as the kernel version in our rootimg


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6265 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-05-28 09:22:09 +00:00
parent d67118ea77
commit 0f64e02304

View File

@ -487,7 +487,7 @@ sub mkinitrd_dracut {
close($optspec);
}
foreach (@ndrivers) { s/\.ko$//; }
system("chroot '$rootimg_dir' dracut -d '".join(' ',@ndrivers)."' -m 'xcat base' /tmp/initrd.$$.gz");
system("chroot '$rootimg_dir' dracut -d '".join(' ',@ndrivers)."' -m 'xcat base' /tmp/initrd.$$.gz $kernelver");
move("$rootimg_dir/tmp/initrd.$$.gz","$destdir/initrd.gz");
}