Menu

#4140 E: Cannot install a hook (/usr/share/dracut/modules.d/97xcat/xcat-premount.sh) that does not exist.

2.9
closed
SL (1)
linux provisioning
5
2014-12-10
2014-05-22
No

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).

Discussion

  • Lissa Valletta

    Lissa Valletta - 2014-06-03

    Guang Cheng could someone check this.

     
  • Lissa Valletta

    Lissa Valletta - 2014-06-03
    • labels: --> SL
    • assigned_to: Guang Cheng Li
    • component: general --> linux provisioning
     
  • Guang Cheng Li

    Guang Cheng Li - 2014-10-22
    • status: open --> pending
     
  • Guang Cheng Li

    Guang Cheng Li - 2014-10-22

    Fixed by Xiao Peng in 2.8 and 2.9.

    2.8: commit 35f99b285bf8da7669221f76ba977f74173b4c43
    2.9:commit e0bbf7b1dbdac740aa8bd1e67a97781e5510e13f

     
  • ting ting li

    ting ting li - 2014-12-10
    • status: pending --> closed
     
MongoDB Logo MongoDB