[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Mount in %post section of RH73



On Wed, 8 Jan 2003, John Beamon wrote:

>I have a slightly different symptom in my experience.  I added a directory
>under /mnt and ran a 'mount -t nfs...' command on it, and it hung.  Hung for
>minutes on end, eventually failing entirely.

Others have suggested this is lockd related, but I'm not convinced. My
observations were that the server will send ARP requests for a
non-existant address, and eventually time out and work.

If the nolock option works for you, that's great. I worked around it by
putting the mount in a separate --nochroot %post section, without any
"-o nolock".

%post --nochroot
#!/bin/sh
# for some reason, mounting after chroot locks up for 2 minutes,
# so do it here
set -x
exec > /dev/console 2>&1
TERM=dumb
reset
clear

export NFSHOST=10.1.3.222
NFSDIR=/vol/redhat/rh73/kickstart
CHROOT=/mnt/sysimage
KICKMNT=/mnt/kickmnt
test -d "${CHROOT}${KICKMNT}" || mkdir -- "${CHROOT}${KICKMNT}"

echo "Mounting $NFSHOST:$NFSDIR for post-install script"
mount "$NFSHOST:$NFSDIR" "${CHROOT}${KICKMNT}"


Cheers,

Phil





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]