OS updates install via KS!

Philip Rowlands phr at doc.ic.ac.uk
Wed Apr 7 09:30:01 CDT 2004


On Tue, 6 Apr 2004, Asim Zuberi wrote:

>%post --nochroot
>#!/bin/sh
>CHROOT=/mnt/sysimage
>KICKMNT=/ks
>
>test -d "${CHROOT}${KICKMNT}" || mkdir -- "${CHROOT}${KICKMNT}"
>
># Setup NFS mounts
>echo "****** Mounting from bladetest2 Server....******"
>mount -t nfs 135.1.45.11:/local/RedHat "${CHROOT}${KICKMNT}"

Erm, you're still in %nochroot here

>echo "****** Applying package updates...******"
>rpm -Fvh "${CHROOT}${KICKMNT}"/OSupdates/*

So this won't work. Start another %post section. And you'll probably
need to special-case the kernel-* packages, as they might not update
nicely. Alternatively, save time during the install and pre-patch the
RedHat/RPMS directory (then run genhdlist).


Cheers,
Phil




More information about the Linux-PowerEdge mailing list