diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index 7c49e862a..c2084aafa 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -534,9 +534,13 @@ sub mkinitrd_dracut { } else { # for diskless cp("$fullpath/dracut/install.netboot","$dracutmpath/install"); - $perm = (stat("$fullpath/dracut/xcat-cmdline.sh"))[2]; + $perm = (stat("$fullpath/dracut/install"))[2]; chmod($perm&07777, "$dracutmpath/install"); + cp("$fullpath/dracut/xcat-cmdline.sh","$dracutmpath/"); + $perm = (stat("$fullpath/dracut/xcat-cmdline.sh"))[2]; + chmod($perm&07777, "$dracutmpath/xcat-cmdline.sh"); + if ($prinic) { my $optspec; open($optspec,'>>',"$dracutmpath/xcat-cmdline.sh");