diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 85ccba438..ff7a1a90b 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -7321,15 +7321,18 @@ sub update_dd_boot # statelite directory to mount SLDIR=`echo \$SLLINE | /usr/bin/awk -F'|' '{print \$3}'` - $::MOUNT \${SLSERV}:\${SLDIR} /tmp + cp /SPOT/usr/bin/mkdir /usr/bin + /usr/bin/mkdir -p /slmnt + + $::MOUNT \${SLSERV}:\${SLDIR} /slmnt # - get the persistent version of basecust from the server - if [ -f /tmp/\${SHOST}/etc/basecust ]; then - cp -p /tmp/\${SHOST}/etc/basecust /etc + if [ -f /slmnt/\${SHOST}/etc/basecust ]; then + cp -p /slmnt/\${SHOST}/etc/basecust /etc cp /SPOT/usr/lib/boot/restbase /usr/sbin cp /SPOT/usr/bin/uncompress /usr/bin fi - umount /tmp + umount /slmnt fi fi \n\n~; @@ -7341,14 +7344,14 @@ sub update_dd_boot # if we found a statelite directory - above if [ -n "\${SLDIR}" ] then + 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` # if we have a basecust file - if [ -f /tmp/\${SHOST}/etc/basecust ]; then + if [ -f /slmnt/\${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 @@ -13879,7 +13882,7 @@ sub mknimimage_usage "\tmknimimage [-V] -u osimage_name [attr=val [attr=val ...]]"; push @{$rsp->{data}}, "or"; push @{$rsp->{data}}, - "\tmknimimage [-V] [-f|--force] [-t nimtype] [-m nimmethod]\n\t\t[-c|--completeosimage] [-r|--sharedroot] [-D|--mkdumpres]\n\t\t[-l ] [-s image_source] [-i current_image]\n\t\t[-p|--cplpp] [-t nimtype] [-m nimmethod] [-n mksysbnode]\n\t\t[-b mksysbfile] osimage_name [attr=val [attr=val ...]]\n"; + "\tmknimimage [-V] [-f|--force] [-t nimtype] [-m nimmethod]\n\t\t[-c|--completeosimage] [-r|--sharedroot] [-D|--mkdumpres]\n\t\t[-l ] [-s image_source] [-i current_image]\n\t\t[-p|--cplpp] [-n mksysbnode] [-b mksysbfile]\n\t\tosimage_name [attr=val [attr=val ...]]\n"; xCAT::MsgUtils->message("I", $rsp, $callback); return 0; }