fix for rc.dd_boot script

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11975 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2012-03-23 19:03:12 +00:00
parent c18868d850
commit d597130b9b

View File

@ -6912,17 +6912,21 @@ sub update_dd_boot
my $mntbase=qq~
# xCAT basecust support #2
if [ -n "\${NIM_SHARED_ROOT}" ]
if [ -n "\${NIM_SHARED_ROOT}" ]
then
# if we found a statelite directory - above
if [ -n "\${SLDIR}" ]
then
# need to mount persistent basecust over the one in RAM FS
$::MOUNT -o rw \${SLSERV}:\${SLDIR} /tmp
/usr/bin/touch /etc/basecust
cp /SPOT/usr/bin/cut /usr/bin
SHOST=`echo \${NIM_HOSTNAME} | /usr/bin/cut -d . -f 1`
mount /tmp/\${SHOST}/etc/basecust /etc/basecust
# if we have a basecust file
if [ -f /tmp/\${SHOST}/etc/basecust ]; then
# need to mount persistent basecust to RAM FS
cp /SPOT/usr/bin/mkdir /usr/bin
/usr/bin/mkdir -p /slmnt
mount -o rw \${SLSERV}:\${SLDIR} /slmnt
/usr/bin/touch /etc/basecust
SHOST=`echo \${NIM_HOSTNAME} | cut -d . -f 1`
mount /slmnt/\${SHOST}/etc/basecust /etc/basecust
fi
fi
fi \n\n~;