Modify an existing CD image to preseed d-i
Create copy of image
Hack the initrd
Create copy of image
#mount -o loop debian-7.5.0-amd64-CD-1.iso /mnt
#mkdir Debian7x64
#rsync -a -H --exclude=TRANS.TBL /mnt Debian7x64
#umount /mnt
Hack the initrd
# mkdir irmod
# cd irmod
# gzip -d < ../Debian7x64/install.amd/initrd.gz | cpio --extract --verbose --make-directories --no-absolute-filenames
# cp ../preseed.cfg preseed.cfg
# find . | cpio -H newc --create --verbose | gzip -9 > ../Debian7x64/install.amd/initrd.gz
# cd ../
# rm -fr irmod/