viernes, 30 de julio de 2010

Linux Debian 5.04 i386 unattended iso booteable

mkdir debian-504
bsdtar -C debian-504 -xf debian-504-i386-CD-1.iso
cd debian-504
chmod u+w install.386/
cp install.386/initrd.gz install.386/initrd.gz.orig
chmod u-w install.386/ install.386/initrd.gz.orig
cd ..
rm -fr debian-504-initrd
mkdir debian-504-initrd
cd debian-504-initrd/
gunzip -c ../debian-504/install.386/initrd.gz.orig | cpio -id
vim preseed.cfg
find . | cpio --create --format='newc' | gzip > ../debian-504-initrd.gz
cd debian-504
chmod u+w install.386/ install.386/initrd.gz
cp ../debian-504-initrd.gz install.386/initrd.gz
chmod u-w install.386/ install.386/initrd.gz
cd ..
mkisofs -o debian-504-i386-morsa.iso -r -J -no-emul-boot -boot-load-size 4 -b isolinux/isolinux.bin -c isolinux/boot.cat ./debian-504 2> /dev/null
cdrecord -v -eject speed=16 debian-504-i386-morsa.iso