Re: [suse-autoinstall] Mount From a Post-Install Script...
Damien, I'm using SuSE 9.0 Intel. I might give this a try, but that fact that I can run it manually w/o the "-t nfs" makes me wonder... This might all end up going in a post-YaST2.firstboot start-up script. :) Roy damien.selles@eu.effem.com wrote:
Hi,
Could you try "/bin/mount -t nfs" instead of "mount" ?
you can also insert a "which mount" .... I am not completely sure.. but I think it has something to do with the path that are not all set.
As far as I am concerned... the nfs mount works fine during the post install when I use the /bin/mount -t nfs ....
BTW... which version of SUSE are you using?
Hope this can help.
Regards, Damien.
Inactive hide details for Roy Butler <roy.butler@jpl.nasa.gov>Roy Butler <roy.butler@jpl.nasa.gov>
Roy Butler <roy.butler@jpl.nasa.gov> jpl.nasa.gov
03/06/2004 03:37
Inactive hide details for To: suse-autoinstall
To:
cc:
Subject: [suse-autoinstall] Mount From a Post-Install Script...
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
-- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
-- Roy Butler - MIST Development Environment Jet Propulsion Laboratory email: roy.butler@jpl.nasa.gov phone: 818-354-8825
participants (1)
-
Roy Butler