Re: %post script to get my files off CD.

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

 



Please don't post HTML to mailing lists.

On Sun, 30 Mar 2003, Lloyd Thompson wrote:

>1) where on the CD should I place my software?

Anywhere, e.g. /custom

>2) This chroot thing confuses me

The %post scripts usually runs in with the filesystem rooted at the
location it would be after installation. This allows you to refer to
/etc, /usr/local and so on without prepending /mnt/sysimage everywhere.

>how do I copy my files off the CDROM, in the chroot environment or not?

Either, but chroot'ed would be simpler.

>I mean excuse my ignorance here, but if the newly installed system is
>mounted on /mnt/sysimage, what is at / is that in memory?

The initrd (initial RAM disk) from the CD.

>How do I access the CDROM?

(example, not tested)
%post
# mount CD
/usr/sbin/updfstab
mount /dev/cdrom /mnt/cdrom
# add software
rpm -i /mnt/cdrom/custom/RPMS/*.rpm
# copy config files
cp -a /mnt/cdrom/custom/etc/* /etc


Hope this helps,
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