RE: Install of rpm packages in %post - script

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

 



I've been struggling with this for days and I still have problems with
it. Running Fedora Core 1.


When attempting to do mkdir -p  /mnt/source the script creates a
/mnt/source? Dir (mnt/source + questionmark). I thought well ok and
changed the copy command to cp /mnt/source?/custom.tar
/mnt/sysimage/root

Still no luck. Comes back with error message that is intermingled with
the kickstart dialog and I can't work out what's happening and why.

[Note the installation has been stripped down to one CD - could I have
missed and essential RPM ??]

Anyone have an idea


Many thanks

Martin




-----Original Message-----
From: kickstart-list-bounces@xxxxxxxxxx
[mailto:kickstart-list-bounces@xxxxxxxxxx] On Behalf Of Marco Welter
Sent: 19 April 2004 15:23
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@xxxxxxxxxxxx

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@xxxxxxxxxxxx


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



[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux