Modifikasi LiveCD
ISO image LiveCD dapat dimodifikasi.
Daftar isi
Muat ISO image
$ mkdir /home/iso $ mount -t iso9660 -o loop /home/IGN2009-LiveCD-GNOME-i386.ISO /home/iso
Lihat isi:
$ ls -l /home/iso isolinux LiveOS
Modul squashfs
Lakukan modprobe
$ (echo '#!/bin/sh'; echo 'modprobe squashfs') > /etc/sysconfig/modules/squashfs.modules $ chmod +x /etc/sysconfig/modules/squashfs.modules
Aktifkan squashfs
$ modprobe squashfs
Pasang squashfs-tools
$ yum install squashfs-tools
Modifikasi squashfs.img
Extrak squashfs.img
Isi dari file sistem disimpan di squashfs.img. Extrak memakai perintah squashfs-root
$ unsquashfs /home/iso/LiveOS/squashfs.img
Muat ext3fs.img
Berkas /home/squashfs-root/LiveOS/ext3fs.img muat ke direktori /home/livecd-root ==
$ mkdir /home/livecd-root $ mount -o loop,rw /home/squashfs-root/LiveOS/ext3fs.img /home/livecd-root
Lakukan perubahan
Sebelum melakukan perubahan sebaiknya menyimpan daftar paket asli
$ rpm -qa --root /home/livecd-root/ | sort > list.txt
Perubahan yang akan dilakukan misal:
- Pasang paket blender
$ yum install blender --root /home/livecd-root/
- Pasang paket gimp
$ yum install gimp --installroot=/home/livecd-root
- Hapus ktorrent
$ yum remove ktorrent --installroot=/home/livecd-root
- Bersihkan dan lakukan updatedb
$ yum clean all --installroot=/home/livecd-root $ updatedb -U /home/livecd-root
Unmount the ext3fs.img and make a new squashfs.img
$ umount /home/livecd-root $ mksquashfs squashfs-root squashfs.img
Create a folder called build for making the new iso image
$ mkdir /home/build $ rsync -av --exclude='squashfs.img' /home/iso/ /home/build $ mv /home/squashfs.img /home/build/LiveOS $ umount /home/iso
When making a new iso image the cd volume label needs to match the isolinux.cfg entry (root=CDLABEL=Fedora-8-LiveCD-KDE).
$ cd /home/build $ mkisofs -R -l -L -D -b isolinux/isolinux.bin \ > -c isolinux/boot.catalog -o \ > /home/Modified-Fedora-8-LiveCD-KDE.iso \ > -no-emul-boot -boot-load-size 4 -boot-info-table \ > -V "Fedora-8-LiveCD-KDE" .