From 3d9248c39feca31334fec1e534fc46d4e6f94b52 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Wed, 7 Jul 2010 10:26:05 +0000 Subject: [PATCH] a bug fix git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6661 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/rh/genimage | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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");