Mailinglist Archive: opensuse-autoinstall (86 mails)
| < Previous | Next > |
post-install script as root
- From: Schulte Thomas ICM Bocholt <schulte@xxxxxxxxxxx>
- Date: Fri, 17 Oct 2003 07:27:45 +0000 (UTC)
- Message-id: <07A65A7D0D6CD311B0F900A0C99AFFF5082386F7@xxxxxxxxxxxxxxxxxxxxxxx>
Hi,
I have a problem running the post-install scripts. They don't seem to run as
root. I need to run them as root because I try to mount a nfs partition.
<scripts>
<post-scripts config:type="list">
<script>
<filename>post_install.sh</filename>
<interpreter>shell</interpreter>
<source>
<![CDATA[#!/bin/sh
#
# post_install.sh
mkdir -p /mnt/tmp
mount -t nfs 14x.xxx.xx.xxx:/xx/x/x /mnt/tmp
cp -r /mnt/tmp/xx/x/x/x/* /usr/local
umount /mnt/tmp
echo "Post Install done." > /var/log/post_install.log
]]>
</source>
</script>
</post-scripts>
</scripts>
I get an error "Mount - Only root can do that".
(SuSE 8.2, autoyast2-2.7.18-1)
Any suggestions?
Thomas
-------------------------------------
Siemens AG
Dipl.-Inform.
Thomas Schulte
ICM CP RD SD 23
Frankenstr.2
46393 Bocholt
+49 2871 91 2156
schulte@xxxxxxxxxxx
-------------------------------------
I have a problem running the post-install scripts. They don't seem to run as
root. I need to run them as root because I try to mount a nfs partition.
<scripts>
<post-scripts config:type="list">
<script>
<filename>post_install.sh</filename>
<interpreter>shell</interpreter>
<source>
<![CDATA[#!/bin/sh
#
# post_install.sh
mkdir -p /mnt/tmp
mount -t nfs 14x.xxx.xx.xxx:/xx/x/x /mnt/tmp
cp -r /mnt/tmp/xx/x/x/x/* /usr/local
umount /mnt/tmp
echo "Post Install done." > /var/log/post_install.log
]]>
</source>
</script>
</post-scripts>
</scripts>
I get an error "Mount - Only root can do that".
(SuSE 8.2, autoyast2-2.7.18-1)
Any suggestions?
Thomas
-------------------------------------
Siemens AG
Dipl.-Inform.
Thomas Schulte
ICM CP RD SD 23
Frankenstr.2
46393 Bocholt
+49 2871 91 2156
schulte@xxxxxxxxxxx
-------------------------------------
| < Previous | Next > |