aboutsummaryrefslogtreecommitdiff
path: root/build-arch-gce
diff options
context:
space:
mode:
Diffstat (limited to 'build-arch-gce')
-rwxr-xr-xbuild-arch-gce5
1 files changed, 5 insertions, 0 deletions
diff --git a/build-arch-gce b/build-arch-gce
index 7a9559f..5046796 100755
--- a/build-arch-gce
+++ b/build-arch-gce
@@ -72,6 +72,7 @@ rsync -r /var/lib/pacman/sync/ $mount_dir/var/lib/pacman/sync/
echo '- Installing Arch Linux.'
pacstrap -c -C "./sys/etc/pacman.conf.org" -M -- "$mount_dir" \
base linux dosfstools e2fsprogs openssh polkit sudo \
+ systemd-resolvconf \
vim-minimal tmux mosh rsync unzip
cp -f ./sys/etc/pacman.conf "$mount_dir/etc/pacman.conf"
@@ -180,6 +181,10 @@ arch-chroot -- "$mount_dir" /bin/bash -s <<-'EOS'
echo '-- Running boot loader.'
bootctl install --no-variables --quiet
+ echo '-- Configuring stub for resolv.conf.'
+ umount /etc/resolv.conf
+ ln -fs /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
+
if [[ -n "${IMAGE_QEMU:-}" ]]; then
echo '-- IMAGE_QEMU: Creating user arch.'
useradd --create-home --groups wheel arch