部分客户要求可以自定制安装系统,由于平时使用debian客户较多,搜索一下相关信息
debian的自动化安装基本是通过配置debian installer参数来完成的.
相关信息如下
http://www.zzbaike.com/wiki/Debian/%E4%BD%BF%E7%94%A8Debian%E5%AE%89%E8%A3%85%E7%A8%8B%E5%BA%8F
http://www.cnblogs.com/hopeworld/archive/2011/04/13/2015114.html
https://wiki.debian.org/DebianInstaller/Preseed/EditIso
自动生成配置网站
http://www.instalinux.com/cgi-bin/coe_bootimage.cgi
You need one of the already built ISO images, which will be used as the basis that we modify. Because you can't modify an ?ISO9660 image, you've to copy it first:
... as root ...
# mkdir loopdir # mount -o loop your-image.iso loopdir # mkdir cd # rsync -a -H --exclude=TRANS.TBL loopdir/ cd # umount loopdir
If the above "mount -o loop" step produces errors you may need to load the loop module using # modprobe loop
... as root ...
# mkdir irmod # cd irmod # gzip -d < ../cd/install/2.6/initrd.gz | \ cpio --extract --verbose --make-directories --no-absolute-filenames # cp ../my_preseed.cfg preseed.cfg # find . | cpio -H newc --create --verbose | \ gzip -9 > ../cd/install/2.6/initrd.gz # cd ../ # rm -fr irmod/
I think it to be easier to just put the preseed.cfg on the CD Filesystem and mention it in isolinux.cfg (just add a new label and append preseed/file=/cdrom/preseed.cfg to the kernel command line). This approach doesn't require root. -- ?HelmutGrohne
Unless the preseed file is in the initrd image you cannot preseed the first three questions. --GuyHulbert
Sigh ... wrong again (for etch anyway ;-). See http://hands.com/d-i/, second paragraph. There is also a link to the appropriate part of the new d-i manual, for lazy folks like myself. However, I still need to do some sarge installs (disaster recovery testing) so only half wrong, I guess. --GuyHulbert
2006-12-06 15:12:53
# cd cd # md5sum `find -follow -type f` > md5sum.txt # cd ..
To make the cdrom bootable, you need to run genisoimage with appropriate parameters. Here is how to do it for x86/amd64, using isolinux.
Change to the top of the cd directory then:
To create the cdrom image using the isolinux boot image:
# genisoimage -o test.iso -r -J -no-emul-boot -boot-load-size 4 \ -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat ./cd
注意:语言、国家和键盘无法在预置文件preseed中指定,因为这些要在加载预置文件之前指定,所以要修改isolinux中得txt.cfg和gtk.cfg
我的是这样的:
txt.cfg
append debian-installer/locale=en_US console-keymaps-at/keymap=us preseed/file=/cdrom/.disk/preseed.cfg vga=788 initrd=/install.amd/initrd.gz -- quiet
gtk.cfg
append debian-installer/locale=en_US console-keymaps-at/keymap=us preseed/file=/cdrom/.disk/preseed.cfg video=vesa:ywrap,mtrr vga=788
initrd=/install.amd/gtk/initrd.gz – quiet