| 149 | * 接著複製我們想要的 preseed 設定檔到 preseed 目錄下,還有 ISO 背景圖檔(如 ezilla.png)。 |
| 150 | {{{ |
| 151 | ~$ sudo wget http://ezilla-nchc.sf.net/d-i/squeeze/preseed.cfg -O /opt/cd-image/preseed/ezilla.seed |
| 152 | ~$ sudo wget http://trac.nchc.org.tw/grid/raw-attachment/wiki/jazz/11-10-13/ezilla.png -O /opt/cd-image/isolinux/ezilla.png |
| 153 | }}} |
| 154 | * 最後重新產生光碟片 ISO 檔 |
| 155 | {{{ |
| 156 | ~$ cat > mk_custom_cd << EOF |
| 157 | #!/bin/bash |
| 158 | IMAGE=custom.iso |
| 159 | BUILD=/opt/cd-image/ |
| 160 | |
| 161 | mkisofs -r -V "Ezilla Install CD" \ |
| 162 | -cache-inodes \ |
| 163 | -J -l -b isolinux/isolinux.bin \ |
| 164 | -c isolinux/boot.cat -no-emul-boot \ |
| 165 | -boot-load-size 4 -boot-info-table \ |
| 166 | -o \$IMAGE \$BUILD |
| 167 | EOF |
| 168 | ~$ chmod a+x mk_custom_cd |
| 169 | ~$ sudo ./mk_custom_cd |
| 170 | }}} |