SUMMARY: Bug in v5.0 installupdate command

From: Jon Morgan <jmorgan_at_dircon.co.uk>
Date: Fri, 12 May 2000 09:16:57 +0100

(I've cheated and called this a summary, when there was no real
question sent to list. Sorry about that.)

There is a bug in the v5.0 /sbin/installupdate shell script that
causes the upgrade from v5.0 -> v5.0a to fail. This script contains
the following lines:

        FSTAB_READONLY=`
        cat /etc/fstab |
        while read LINE
        do
                set -- $LINE
                for FS in /usr /var
                do
                        if [ "$2" = "$FS" ]
                        then
                            echo $4 | grep -q "ro" &&
                            {
                                        [ "$NEED_AND" ] && echo " and
\c"
                                        echo "$FS\c"
                                        NEED_AND=1
                            }
                        fi
                done
        done`

The grep in this command matches "groupquota" in the /etc/fstab file,
for example:

        # /etc/fstab

# --------------------------------------------------------------------
------
        #
        # Mount all the system specific partitions
        #
        root_domain#root / advfs
rw,userquota,groupquota 0 1
        /proc /proc procfs
rw,userquota,groupquota 0 0
        usr_domain#usr /usr advfs
rw,userquota,groupquota 0 2
        usr_domain#var /var advfs
rw,userquota,groupquota 0 2
        #

I've logged this as a call with Compaq CSC in the UK and engineering
have acknowledged this as a bug. The fix is to either remove the check
from /sbin/installupdate, or to change the shell script to search for
the correct field.

Hope this helps,

                -jon.

--
jon morgan
Received on Fri May 12 2000 - 08:14:59 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT