
Hi! What I do is: <![CDATA[#!/bin/sh mount 1.2.3.4:/local_x86 /usr/local rpm -iv /usr/local/SOFTWARE/suse90/*.rpm umount 1.2.3.4:/local_x86 ]]> And it works. Does your mkdir really work? Perhaps /mnt is already mounted by autoyast at that time. Have you tried mounting to another directory? Regards, Andreas On Wed, 2 Jun 2004, Roy Butler wrote:
Autoinstall gurus,
I'm trying to mount an NFS share from a post-install script and it's failing with the error "mount: only root can do that". I threw a call to id in the script and it reports "uid=0(root) gid=0(root)", so I'm a little baffled. The mount can be performed manually during the install or after completion with no problem. Here's the relevant part of my XML configuration file (server IP faked):
--------------------
<![CDATA[#!/bin/sh
mkdir /mnt/resources
id
mount 1.2.3.4:/autoinst/SuSE9.0 /mnt/resources
for MYSCRIPT in /mnt/resources/scripts/generic/A*; do $MYSCRIPT done > /var/adm/autoinstall/logs/generic.log 2>&1
umount /mnt/resources]]>
--------------------
Does anybody have an idea what the issue could be? I need it to happen after the RPM installs. I suppose I could throw this in a one-time rc script, but I'd like to understand the underlying issue...
Thanks, Roy
-- Andreas Vetter Universitaet Wuerzburg, Theoretische Physik 1 Am Hubland, 97074 Wuerzburg, Deutschland / Germany