"//usr/lib/lu/ludefine: test: argument expected"

When performing a Live Upgrade, I received the following error messages:

# luupgrade -u -n solaris8 -s /cdrom/cdrom0/s0
Validating the contents of the media </cdrom/cdrom0/s0>.
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains <Solaris> version <8>.
The media contains patches for the product.
Locating upgrade profile template to use.
Locating the operating system upgrade program.
Checking for existence of previously scheduled Live Upgrade requests.
Creating upgrade profile for BE <solaris8>.
//usr/lib/lu/ludefine: test: argument expected
ERROR: Unable to create ICF file for boot environment <solaris8>.
ERROR: Unable to determine root slice for BE <solaris8>.

Sun Document ID ID41249 addresses the problem. Our Primary Boot Environment had a blank line in the /etc/vfstab file. The presence of this blank line causes problems with the Live Upgrade, specifically as it populates /etc/vfstab on the Alternate Boot Environment.

The /etc/vfstab in the Alternate Boot Environment has many "garbage" lines appended. Example:

if      [       -n      "${ABE_VFSTAB_CAN_BE_DELETED}"  -a      -n      -
${LUPRINTF}     -lp1    "`gettext       'Removing       incomplete      vfstab  -
if      [       -n      "${ABE_VFSTAB_SAV}"     -a      -s      -
${LUPRINTF}     -lp1    "`gettext       'Restoring      backup  copy    -
${LUPRINTF}     -lp1    "`gettext       'The    update  of      -
${LUPRINTF}     -lp1    "`gettext       'The    update  of      -
trap    ""      1       2       3       9       -
${LUPRINTF}     -Ilp2   "`gettext       'Interrupted    (Signal received):      -
${LUPRINTF}     -Eelp2  "`gettext       'The    <%s>    option  -
${LUPRINTF}     -Eelp2  "`gettext       'The    <%s>    option  -
if      [       -n      "$1"    -a      -n      -
${LUPRINTF}     -Eelp2  "`gettext       'The    <%s>    option  -
if      [       -n      "$1"    -a      -n      -
${LUPRINTF}     -Eelp2  "`gettext       'The    <%s>    option  -
${LUPRINTF}     -Eelp2  "`gettext       'The    <%s>    option  -
${LUPRINTF}     -Eelp2  "`gettext       'The    <%s>    option  -
if      [       -f      "${COPYLOCK}"   -a      -s      -
${LUPRINTF}     -Eelp2  "`gettext       'A      Live    Upgrade -
${LUPRINTF}     -lp2D   -       "`gettext       'lulib_check_pbe_mounts calling -

Remove all the "garbage" lines from /etc/vfstab and continue the Live Upgrade process. You may also want to remove the blank line from /etc/vfstab in the Primary Boot Environment.
 
Back to brandonhutchinson.com.
Last modified: 08/06/2003