From 5389ce87ce6c11fb94c0631c7ed751d00a19e150 Mon Sep 17 00:00:00 2001 From: nott Date: Fri, 23 Mar 2012 19:06:45 +0000 Subject: [PATCH] fix for rc.dd_boot script git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11976 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index c62d28057..d65625326 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -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~;