Install of rpm packages in %post - script

David Tegelaar dtegelaar at egenera.com
Mon Apr 19 14:34:57 UTC 2004


Once you set --nochroot, you have to handle
subsequent lines accordingly.  For example
with a useradd line you would chroot it to
/mnt/sysimage:
chroot /mnt/sysimage /usr/sbin/useradd -c 'Administrateur' -s /bin/false
admin

(you may need to specifiy the full path to the
chroot binary like /mnt/sysimage/sbin/chroot).

-dave

-----Original Message-----
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com]On Behalf Of Marco Welter
Sent: Monday, April 19, 2004 10:23 AM
To: Discussion list about Kickstart
Subject: Re: Install of rpm packages in %post - script


Hi,

> %post --nochroot
> # cdrom is not mounted during post so i mount it with the --nochroot
option
> mkdir -p /mnt/source
> mount /tmp/cdrom /mnt/source
>
> # copy updates.conf from the cd to /tmp on the installed system
> cp -f /mnt/source/RedHat/RPMS/updates.conf /mnt/sysimage/tmp
thank you, no works ;-)
>
> %post
> # creation of admin account - the rest of the kickstart can be performed
> in normal %post mode
> /usr/sbin/useradd -c 'Administrateur' -s /bin/false admin
but not 100 %, when i have a "normal" %post after %post --nochroot whith rpm
-ivh /root/xyz.rpm it do not work

Bye

Marco
> ...
>
> hth
>
> pantz

--
Lx-System  GbR

Tel.: 0700 LXSYSTEM
info at lx-system.de

Hauptgeschäftsstelle:
Ensinger Strasse 19 - 89073 Ulm
0731 / 602 81 19

Zweigniederlassung:
Zur alten Zollbruecke 30 - 87527 Sonthofen
Tel: 08321 / 67 42 43 - Fax: 08321 / 67 42 44
E-Mail: mawe at lx-system.de


_______________________________________________
Kickstart-list mailing list
Kickstart-list at redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list





More information about the Kickstart-list mailing list