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:
parent
d67118ea77
commit
0f64e02304
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user