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~;