123 | | || <post-install-script> || post-install-script 的路徑,屬性質有 url, nfs 或 local: [[BR]] <post-install-script type="url"> [[BR]] !http://server/scripts [[BR]] </post-install-script> [[BR]] <post-install-script type="local" /> [[BR]] <post-install-script type="nfs"> [[BR]] server:scripts [[BR]] </post-install-script>|| Y || |
124 | | || <admin-interface> || || N || |
| 123 | || <post-install-script> || post-install-script 的路徑,屬性值有 url, nfs 或 local: [[BR]] <post-install-script type="url"> [[BR]] !http://server/scripts [[BR]] </post-install-script> [[BR]] <post-install-script type="local" /> [[BR]] <post-install-script type="nfs"> [[BR]] server:scripts [[BR]] </post-install-script>|| Y || |
| 124 | || <admin-interface> || 需要使用的網路設備,屬性值有 proto:dhcp或static, name:eth0,當 proto="static" 時的子屬性值有 [[BR]] <ip> <subnet-mask> <gateway> || N || |
| 125 | || <time_zone> || TZ 變數 ex. Europe/London, or America/Los_Angeles || Y || |
| 126 | || <name_server> || 可設定己組的 name server || N || |
| 127 | || <hostname> || 主機名稱 || N || |
| 128 | || <bootloader> || 可指定要安裝那種 bootloader (目前有兩個有選,預設是 extlinux 和 grub) || N || |
| 129 | * 也可透過 answer file 來做到自動更新 (需設定 reinstall 和 existing-installation) |
| 130 | {{{ |
| 131 | #!sh |
| 132 | <?xml version="1.0"?> |
| 133 | <installation mode="reinstall"> |
| 134 | <existing-installation>sda</existing-installation> |
| 135 | <keymap>us</keymap> |
| 136 | <root-password>mypassword</root-password> |
| 137 | <source type="url">http://pxehost.example.com</source> |
| 138 | <post-install-script type="url"> |
| 139 | http://pxehost.example.com/myscripts/post-install-script |
| 140 | </post-install-script> |
| 141 | <admin-interface name="eth0" proto="dhcp" /> |
| 142 | <timezone>Europe/London</timezone> |
| 143 | </installation> |
| 144 | }}} |