From 5fc5a13dadbc24d0ca09275513597893e7018e57 Mon Sep 17 00:00:00 2001 From: nott Date: Mon, 19 Mar 2012 18:38:55 +0000 Subject: [PATCH] fix for rc.dd_boot script git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11895 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index b02af8be7..d751cd9e8 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -6593,12 +6593,16 @@ sub update_dd_boot # 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~;