Summary: RIS and dupatch'ing (-root option)

From: Alan Garde <alan.garde_at_transport.uk.eds.com>
Date: Mon, 30 Mar 1998 17:12:14 +0100

Well, I didn't get any answers but I found my own solution...

assuming /patches exists on the ris server and the patches have already been applied to the patch server (so dupatch is properly installed).

(i.e. /patches contains /patches/patch_kit)

add /patches to the /etc/exports file so it can be mounted

/patches -root=0 -ro

cp /usr/sbin/dupatch /patches/patch_kit/dupatch2

vi /patches/patch_kit/dupatch2

change line 908
        /usr/lbin/fitset / < $_TMP1
to
        /usr/lbin/fitset $_ROOT < $_TMP1

line 3900 from
        export _ROOT _SMDB
to
        export _ROOT _SMDB _ALTROOT


(this is due to a bug in this version of dupatch... it will install the patches to a filesystem other than / but it checks for the freespace on /, it also then tries to install on the remote CD-ROM !!!).


the postload file should have these lines added to it:


mkdir /var/mnt
mount -t nfs c381dsv12003:/patches /var/mnt
cp /var/mnt/patch_kit/dupatch2 /mnt/usr/sbin
/mnt/usr/sbin/dupatch2 -install -kit /var/mnt/patch_kit -name RIS -note "RIS install" -patch all
                                                                                                      -proceed -root /mnt
umount /var/mnt



(changing the hostname of the RIS server of course)


if you do all that it seems to work fine here!!!!!


Alan


----------
From: Garde, Alan
Sent: 28 March 1998 11:17
To: 'alpha-osf-managers_at_ornl.gov'
Subject: RIS and dupatch'ing (-root option)


Has anyone here had any success using the -root option on the dupatch supplied with DU 4.0B Jumbo Patch #6? I want to specify an alternative root (/mnt rather than /) so I can apply the patches during the postload part of a RIS install. The machine is still effectifely in single user mode (the dupatch script accepts this as being OK).

With the -root /mnt option dupatch correctly looks under /mnt and verifies what patches it can install. Unfortunately it then does a /usr/lbin/fitset / in line 908, i.e. checking the "real" root for space to do that patches rather than looking at the root I specified. This is a problem since under RIS /var is a memory filesystem so isn't big enuff... if it looked at my specified root there woule be no problem. Also, once I hacked this out, it tried to copy to the real /usr/.smdb. rather than the one under /mnt... again bad since /usr is a CDROM...

anyone got this working? Anyone have other ways to install the patches automagically whilst doing a RIS installation?


thanks,

Alan



Airport Systems Group, EDS
1-3 Bartley Wood Business Park, Hook, Hampshire, RG27 9XA
Tel: 01256 742629, Fax: 01256 742700
email: alan.garde_at_transport.uk.eds.com
Received on Mon Mar 30 1998 - 18:15:24 NZST

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