RE: Install of rpm packages in %post - script

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

 



On Tue, 20 Apr 2004, Martin Siddall wrote:

>%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

I claim a two-liner!

%post --nochroot
mount /dev/hdc /mnt/source
tar xvfz /mnt/source/custom.tar.gz -C /mnt/sysimage/root


Cheers,
Phil



[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