Skip to content

Commit

Permalink
Enhance IPv6-only support, allow Multi-ESP (Ubuntu-only), drop legacy…
Browse files Browse the repository at this point in the history
… code
  • Loading branch information
asciiprod committed Nov 18, 2021
1 parent 215bc2c commit ba4f0cb
Show file tree
Hide file tree
Showing 25 changed files with 618 additions and 1,573 deletions.
12 changes: 7 additions & 5 deletions archlinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ extract_image() {

# symlink to latest archlinux-bootstrap
local archlinux_bootstrap_archive="$SCRIPTPATH/../archlinux/archlinux-bootstrap-latest-x86_64.tar.gz"
local archlinux_mirror='https://mirror.hetzner.de/archlinux'
local archlinux_packages='base btrfs-progs cronie cryptsetup gptfdisk grub haveged linux linux-firmware lvm2 mdadm net-tools openssh python rsync vim wget xfsprogs'
local archlinux_mirror='https://mirror.hetzner.com/archlinux'
local archlinux_packages='base btrfs-progs cronie cryptsetup gptfdisk grub haveged linux linux-firmware lvm2 mdadm net-tools openssh python rsync vim wget xfsprogs inetutils'

# dont extract archlinux-bootstrap to system memory but the target disk
local hdd_dir="$FOLD/hdd"
Expand Down Expand Up @@ -142,9 +142,11 @@ extract_image() {
local resolv_conf="$hdd_dir/etc/resolv.conf"
debug "# create /etc/resolv.conf"
{
for ip in $(shuf -e "${NAMESERVER[@]}") $(shuf -e "${DNSRESOLVER_V6[@]}"); do
echo "nameserver $ip"
done
echo "### $COMPANY installimage"
echo '# nameserver config'
while read nsaddr; do
echo "nameserver $nsaddr"
done < <(randomized_nsaddrs)
} > "$resolv_conf" || return 1
diff -Naur /dev/null "$resolv_conf" | debugoutput

Expand Down
Loading

0 comments on commit ba4f0cb

Please sign in to comment.