Networker

Re: [Networker] Error running postinstall script for LGTOdrvr package on sol7

2004-02-04 08:44:28
Subject: Re: [Networker] Error running postinstall script for LGTOdrvr package on sol7
From: Itzik Meirson <imeirson AT MBI.CO DOT IL>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 4 Feb 2004 15:43:02 +0200
I assume you are upgrading a 6.x.x to a 7.x Networker.
You have to first remove the current installation with pkgrm and only
then install the new version.
It seems that your "system's" file /var/sadm/install/contents still
reports the inquire command as been installed in /etc/LGTOuscsi
directory as well as in its new location /usr/sbin.
Itzik

> -----Original Message-----
> From: Legato NetWorker discussion
[mailto:NETWORKER AT LISTMAIL.TEMPLE DOT EDU] On Behalf Of Oscar Olsson
> Sent: Wednesday, February 04, 2004 11:13
> To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
> Subject: [Networker] Error running postinstall script for LGTOdrvr
package on sol7
> 
> When installing the LGTOnode package, it fails when running the
> postinstall script on solaris 7.
> 
> The error is:
> 
> ## Executing preinstall script.
> ## Installing part 1 of 1.
> /usr/kernel/drv/lus
> /usr/kernel/drv/lus32
> [ verifying class <none> ]
> ## Executing postinstall script.
> /var/sadm/pkg/LGTOdrvr.8/install/postinstall: test: unknown operator
> 32-bit
> pkgadd: ERROR: postinstall script did not complete successfully
> 
> Installation of <LGTOdrvr.8> failed.
> 
> I guess this is an error in the postinstall script?
> 
> According to the script, this is what it does:
> 
> # Solaris 7 running on a sparc chip
> if [ ${MYOS} = solaris7 -a ${MYARCH} = sparc ]; then
>         mv -f $PKG_INSTALL_ROOT/usr/kernel/drv/lus32
> $PKG_INSTALL_ROOT/usr/kernel/drv/lus
>         removef $PKGINST /usr/kernel/drv/lus
>         removef $PKGINST /usr/kernel/drv/lus32
>         installf $PKGINST /usr/kernel/drv/lus f
> 
>         INQUIRE=`grep "inquire f" /var/sadm/install/contents | awk
'{print
> $1}'`
>         BINMODE=`file $INQUIRE | awk '{print $3}'`
>         if [ ${BINMODE} = "32-bit" ]; then
>                 mv -f $PKG_INSTALL_ROOT/usr/lib/nsr/libscsi27.so.1
> $PKG_INSTALL_ROOT/usr/lib/nsr/libscsi.so.1
>                 removef $PKGINST /usr/lib/nsr/libscsi.so.1
>                 removef $PKGINST /usr/lib/nsr/libscsi27.so.1
>                 installf $PKGINST /usr/lib/nsr/libscsi.so.1 f
>         else
>                 rm -f $PKG_INSTALL_ROOT/usr/lib/nsr/libscsi27.so.1
>                 removef $PKGINST /usr/lib/nsr/libscsi27.so.1
>         fi
> 
>         removef -f $PKGINST
>         installf -f $PKGINST
> fi
> 
> But the output from the above INQUIRE command returns this:
> 
> [root@britt:/root/install/LGTOdrvr/install] grep "inquire f"
> /var/sadm/install/contents | awk '{print $1}'
> /etc/LGTOuscsi/inquire
> /usr/sbin/inquire
> 
> Where is "32-bit" comming from? Am I doing something wrong, or is the
> script flawed?
> 
> //Oscar
> 
> --
> Note: To sign off this list, send a "signoff networker" command via
email
> to listserv AT listmail.temple DOT edu or visit the list's Web site at
> http://listmail.temple.edu/archives/networker.html where you can
> also view and post messages to the list.
> =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  
the 
sender immediately and do not disclose the contents to any one or make copies.

MBI - System Team
**************************************************************************************************

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>