RE: Install of rpm packages in %post - script

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

 



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@xxxxxxxxxx
[mailto:kickstart-list-bounces@xxxxxxxxxx] 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@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