While creating a SL image with genimage the script will call /opt/xcat/share/xcat/netboot/SL/genimage.
In the mkinitrd_dracut function if mode=statelite there are a couple of files that do not exist, from the code:
cp("$fullpath/$dracutdir/xcat-updateflag",$dracutmpath);
$perm = (stat("$fullpath/$dracutdir/xcat-updateflag"))[2];
chmod($perm&07777, "$dracutmpath/xcat-updateflag");
cp("$fullpath/$dracutdir/xcat-premount.sh",$dracutmpath);
$perm = (stat("$fullpath/$dracutdir/xcat-premount.sh"))[2];
chmod($perm&07777, "$dracutmpath/xcat-premount.sh");
but the files do not exist in the dracut directory:
[root@controller xcat-xcat-core]# ll /root/xcat-xcat-core/xCAT-server/share/xcat/netboot/SL/dracut/
total 0
lrwxrwxrwx 1 root root 21 mei 21 22:14 check -> ../../rh/dracut/check
lrwxrwxrwx 1 root root 29 mei 21 22:14 installkernel -> ../../rh/dracut/installkernel
lrwxrwxrwx 1 root root 31 mei 21 22:14 install.netboot -> ../../rh/dracut/install.netboot
lrwxrwxrwx 1 root root 33 mei 21 22:14 install.statelite -> ../../rh/dracut/install.statelite
lrwxrwxrwx 1 root root 31 mei 21 22:14 xcat-cmdline.sh -> ../../rh/dracut/xcat-cmdline.sh
lrwxrwxrwx 1 root root 32 mei 21 22:14 xcat-prepivot.sh -> ../../rh/dracut/xcat-prepivot.sh
lrwxrwxrwx 1 root root 24 mei 21 22:14 xcatroot -> ../../rh/dracut/xcatroot
the necessary file links where never made for those 2 cp commands to work.
This was checked in xCAT 2.8.3 and the latest code from the master branch (2.9 if I am not mistaken).
Guang Cheng could someone check this.
Fixed by Xiao Peng in 2.8 and 2.9.
2.8: commit 35f99b285bf8da7669221f76ba977f74173b4c43
2.9:commit e0bbf7b1dbdac740aa8bd1e67a97781e5510e13f