cd
wget http://ftp.riken.jp/Linux/centos/5.6/isos/i386/CentOS-5.6-i386-LiveCD.iso
wget -O - 'http://sourceforge.jp/projects/tomoyo/svn/view/branches/centos-5.7/LiveCD.tar.gz?root=tomoyo&view=tar' | tar -zxf -
cd LiveCD/
chmod +x *.sh
mkdir -p mnt cdrom squash initrd ext3
mount -o loop ~/CentOS-5.6-i386-LiveCD.iso mnt/
cp -a mnt/* cdrom/
umount -d mnt/
mount -t squashfs -o loop cdrom/LiveOS/squashfs.img mnt/
cp -a mnt/LiveOS/ squash/
umount -d mnt/
mount -o loop,noatime squash/LiveOS/ext3fs.img ext3/ # Unmounted by generate-livecd.sh
cd ext3/
wget http://osdn.dl.sourceforge.jp/tomoyo/51567/ccs-kernel-2.6.18-274.12.1.el5_tomoyo_1.8.3p4.i686.rpm http://osdn.dl.sourceforge.jp/tomoyo/51567/ccs-tools-1.8.3-1.i386.rpm
rpm --checksig ccs-*.rpm
cp -p ../package-install.sh .
cat /etc/resolv.conf > etc/resolv.conf
chroot . /package-install.sh
cd ../
./generate-livecd.sh
