a bug fix

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6661 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-07-07 10:26:05 +00:00
parent a837a444e8
commit 3d9248c39f

View File

@ -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");