Using an answerfile with setup-alpine
<--! vim: set ft=mediawiki: -->
Using An Answerfile with setup-alpine
To get an quick start with setup-alpine answerfiles, a starter answerfile can be generated with:
setup-alpine -c PATH_TO_FILENAME
At the time of writing this, the previous command will result in output in the specified PATH_TO_FILENAME:
Contents of PATH_TO_FILENAME
When using answerfile, be sure to edit the file's contents to your needs. Comment out variables you wish not to be set. Be sure that the uncommented variables have valid values set to your preference. Once you are satisfied with the answerfile contents, this how is to use it:
setup-alpine -f PATH_TO_FILENAME
Answerfile Variables
The variables in the answerfile alter the arguments passed to the setup-* scripts that are called out to from setup-alpine. These are:
- KEYMAPOPTS="LAYOUT VARIANT"
- HOSTNAMEOPTS="HOSTNAME"
- DEVDOPTS="DEVD"
- The choices are mdev (from busybox), mdevd (standalone), and udev (from eudev).
- DEVDOPTS="DEVD"
- INTERFACEOPTS="file contents to put in /etc/network/interfaces"
- This will be used as input to the setup-interfaces command.
- INTERFACEOPTS="file contents to put in /etc/network/interfaces"
- DNSOPTS="-d DOMAIN IP_ADDR
- Use -d to specify search domain. Use IP_ADDR to specify DNS servers to use (mutliple allowed).
- DNSOPTS="-d DOMAIN IP_ADDR
- TIMEZONEOPTS="ZONE"
- Specify the timezone, based on files relative to /usr/share/zoneinfo.
- TIMEZONEOPTS="ZONE"
- PROXYOPTS="PROXY_URL"
- Specify the URL for proxy to use; eg http://webproxy:8080.
- PROXYOPTS="PROXY_URL"
- NTPOPTS="NTP_DAEMON"
- The choices are busybox, openntpd, chrony, and none.
- NTPOPTS="NTP_DAEMON"
- APKREPOSPTS="setup-apkrepos options"
- Specify command line options for setup-apkrepos:
Contents of setup-apkrepos -h
usage: setup-apkrepos [-ch] [-f|-r|-1|REPO...] setup-apkrepos -o Setup apk repositories options: -c Enable the community repo -f Detect and add fastest mirror -h Show this help -o Only enable a community repo for every defined repo -r Add a random mirror and do not prompt -1 Add first mirror on the list (normally a CDN) Option -o cannot be used with options -c, -f, -r or -1
- APKREPOSPTS="setup-apkrepos options"
- USEROPTS
- USERSSHKEY
- SSHDOPTS
- ROOTSSHKEY
- XENDOM0OPTS
- DISKOPTS
- LBUOPTS
- APKCACHEOPTS