From 6596d095b1957a4ad15126e9d590c0e57d5540ee Mon Sep 17 00:00:00 2001 From: mxi1 Date: Fri, 5 Mar 2010 08:00:51 +0000 Subject: [PATCH] little change for the last commit of genimage on sles git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5379 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/sles/genimage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/sles/genimage b/xCAT-server/share/xcat/netboot/sles/genimage index 169dfd01f..c9775964b 100755 --- a/xCAT-server/share/xcat/netboot/sles/genimage +++ b/xCAT-server/share/xcat/netboot/sles/genimage @@ -615,7 +615,7 @@ EOS1 print $inifile "mount -t proc /proc /proc\n"; print $inifile "mount -t sysfs /sys /sys\n"; - print $inifile "mount -o mode=$permission -t tmpfs /dev /dev\n"; # the default permission will be 755 + print $inifile "mount -o mode=0755 -t tmpfs /dev /dev\n"; print $inifile "mkdir /dev/pts\n"; print $inifile "mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts\n"; print $inifile "mkdir /dev/shm\n"; @@ -757,10 +757,10 @@ if [ "\$NFSROOT" = "1" ]; then shell done grep '\\(shell\\)' /proc/cmdline >/dev/null && shell - mount -t tmpfs rw -o mode=755 \$NEWROOT/\$RWDIR + mount -t tmpfs rw -o mode=$permission \$NEWROOT/\$RWDIR mkdir -p \$NEWROOT/\$RWDIR/tmpfs - mount the /root/.ssh, it needs more strict permission in order for ssh work + #mount the /root/.ssh, it needs more strict permission in order for ssh work if [ ! -e "\$NEWROOT/root/.ssh" ] then mkdir -p \$NEWROOT/root/.ssh