gns3-registry/packer/alpine-linux/scripts/install.sh

37 lines
551 B
Bash
Raw Normal View History

2020-08-03 10:27:15 +00:00
#!/bin/sh
# shellcheck disable=SC2034
2020-08-03 10:27:15 +00:00
set -e
# Export most answers for setup-alpine
set -a
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
2020-08-03 10:27:15 +00:00
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
2020-08-03 10:27:15 +00:00
"
TIMEZONEOPTS="-z UTC"
PROXYOPTS="none"
APKREPOSOPTS="-1"
SSHDOPTS="-c openssh"
NTPOPTS="-c none"
DISKOPTS="-m sys /dev/sda"
BOOT_SIZE=50
SWAP_SIZE=0
set +a
2020-08-03 10:27:15 +00:00
# - Answer to password question twice
# - Do not create unprivileged user
# - Select disk
# - Confirm formatting disk
2020-08-03 10:27:15 +00:00
setup-alpine <<EOF
root
root
no
2020-08-03 10:27:15 +00:00
y
EOF