forked from wrenn/wrenn
v0.2.0 (#50)
Co-authored-by: Tasnim Kabir Sadik <tksadik@omukk.dev> Reviewed-on: wrenn/wrenn#50
This commit is contained in:
20
images/build-arch.sh
Executable file
20
images/build-arch.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# build-arch.sh — Build the minimal-arch system base rootfs (template id 2).
|
||||
#
|
||||
# Arch is rolling-release; archlinux:base is the minimal base group.
|
||||
#
|
||||
# Usage: bash images/build-arch.sh
|
||||
|
||||
set -euo pipefail
|
||||
source "$(cd "$(dirname "$0")" && pwd)/build-common.sh"
|
||||
|
||||
# tini is AUR-only on Arch (not in core/extra), so it is not installed here —
|
||||
# rootfs-from-container.sh injects the static tini binary instead.
|
||||
PREP="set -e
|
||||
pacman -Sy --noconfirm --needed socat chrony sudo wget curl ca-certificates git iproute2 inetutils
|
||||
useradd -m -s /bin/bash wrenn-user
|
||||
${WRENN_SUDOERS_SETUP}
|
||||
pacman -Scc --noconfirm || true"
|
||||
|
||||
build_system_rootfs "archlinux:base" 2 "${PREP}"
|
||||
Reference in New Issue
Block a user