Install of rpm packages in %post - script

Martin Siddall MSiddall at imaginativeit.co.uk
Tue Apr 20 09:47:17 UTC 2004


Many thanks to you all.

I have got it working and thought I would let you all know the config in
the ks.cfg file in case anyone else has the same problems.


%post --nochroot
ln -sv /dev/hdc /tmp/cdromsource
mkdir -p /mnt/source
mount -t iso9660 /tmp/cdromsource /mnt/source >>/tmp/mount.log 2>&1
cp -f /mnt/source/custom.tar.gz /mnt/sysimage/root
cd /mnt/sysimage/root
gunzip custom.tar.gz
tar -xf custom.tar
rm custom.tar


HTH

Cheers

Martin

-----Original Message-----
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Philip Rowlands
Sent: 20 April 2004 10:26
To: Discussion list about Kickstart
Subject: RE: Install of rpm packages in %post - script

On Tue, 20 Apr 2004, Martin Siddall wrote:

>When opening the shell in the %post section I tried the commands an got
>an error from mount saying that the file does not exist. Having checked
>the mnt/source and /tmp/cdrom I found that the device file cdrom had
>been deleted.
[snip]
>How can I create the device in the /tmp dir.

See mknod(1), which I believe is part of the busybox builtin.


Cheers,
Phil


_______________________________________________
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