17 lines
697 B
Bash
Executable file
17 lines
697 B
Bash
Executable file
#!/bin/bash -e
|
|
# vim: set ts=4 sw=4 sts=4 et :
|
|
### 01_install_core.sh : Create build chroot install of Archlinux using pacstrap
|
|
echo "--> Alpine Linux 01_install_core.sh"
|
|
|
|
ALPINELINUX_PLUGIN_DIR="${ALPINELINUX_PLUGIN_DIR:-"${SCRIPTSDIR}/.."}"
|
|
ALPINELINUX_VERSION=${ALPINELINUX_VERSION:-latest-stable}
|
|
ALPINELINUX_SRC_PREFIX="${ALPINELINUX_SRC_PREFIX:-https://dl-cdn.alpinelinux.org/alpine/"$ALPINELINUX_VERSION"/main}"
|
|
|
|
set -e
|
|
[ "$VERBOSE" -ge 2 -o "$DEBUG" -gt 0 ] && set -x
|
|
|
|
# make sure pacman master private key is _not_ stored in the TemplateVM - see
|
|
# scripts/alpine-chroot for details
|
|
unset SKIP_VOLATILE_SECRET_KEY_DIR
|
|
|
|
"${ALPINELINUX_PLUGIN_DIR}/prepare-chroot-base" "$INSTALLDIR" "$DIST"
|