Tips&Tricks |
How to edit openSUSE live CDOpenSUSE use lzma compressions for live CD, you could find more info on http://lizards.opensuse.org/2009/04/28/whats-behind-lzma-compressed-live... and http://lizards.opensuse.org/2009/05/15/livecd-performance-clicfs-vs-squa... zypper in clicfs
mkdir /mnt/iso mkdir /mnt/iso_unpacked_clicfs/ mkdir /mnt/iso_filesystem/ mkdir /tmp/new_cd mount -o loop ~/openSUSE-KDE4-LiveCD-i686-Build0233-Media.iso /mnt/iso/
ls /mnt/iso/ boot config.isoclient dummy GPLv2.txt GPLv3.txt openSUSE-kde-11.2-livecd-kde-read-only.i686-2.8.0 syslinux.cfg clicfs /mnt/iso/openSUSE-kde-11.2-livecd-kde-read-only.i686-2.8.0 /mnt/iso_unpacked_clicfs/
ls /mnt/iso_unpacked_clicfs/ fsdata.ext3 cp /mnt/iso_unpacked_clicfs/fsdata.ext3 /tmp/new_cd/fsdata.ext3 mount -o loop /tmp/fsdata.ext3 /mnt/iso_filesystem/ ls /mnt/iso_filesystem/ bin boot dev etc home image lib license.tar.gz lost+found media mnt opt proc root sbin selinux srv sys tmp usr var drop unneeded doc directory we could free ~100MB rm /mnt/iso_filesystem/usr/share/doc now you could do changes in /mnt/iso_filesystem/ after finishing work, unmount data umount /mnt/iso_filesystem/ copy all needed files from mounted CD cp -r /mnt/iso/* /tmp/new_cd/ and overwrite data file where is filesystem stored mkclicfs /tmp/new_cd/fsdata.ext3 /tmp/new_cd/openSUSE-kde-11.2-livecd-kde-read-only.i686-2.8.0 finally remove fsdata.ext3 rm /tmp/new_cd/fsdata.ext3 now we have directory prepared to create ISO so we could launch mkisofs : cd /tmp/new_cd/ mkisofs -r -l -o /tmp/new.iso -b boot/i386/loader/isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table . if everything goes ok we should have create our modified iso /tmp/new.iso also don't forget to clean up mounted filesystems fusermount -u /mnt/iso_unpacked_clicfs/
umount /mnt/iso/
|