Building CentOS 6.2 custom install media
On Fri, Feb 3, 2012 at 11:10 AM, John Doe <email@example.com> wrote:
> If you are familiar with kickstarts, you do not need anything else...
> Just write your kickstart and add it to either a DVD or a USB key or ...
> For the DVD, something like this used to work in the past:
> mount CentOS-*-bin-DVD.iso /mnt/cdrom -t iso9660 -o loop
> cp -a /mnt/cdrom /tmp/cdrom
> cd /tmp/cdrom
> cp ks.cfg .
> edit isolinux/isolinux.cfg:
> * default linux ks=cdrom:/ks.cfg
> chmod u+w isolinux/*
> cd /tmp
> mkisofs -o dvd.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T cdrom
The approach of taking the existing media and making incremental
modifications - I see.
However, we will need to modify the yum repo found on the media to add
our own packages, and it would also be preferable to remove the ones
that we are not interested in. This could be done by hand, but it
would be fiddly...
I presume the official CentOS 6.2 ISOs were not created in this
manner. It would be cleaner/nicer if we could adopt the official build
infrastructure (which I presume starts from zero), and this would
avoid the above complications.
CentOS mailing list