base-image/scripts/enable_services.sh
2022-12-15 20:45:20 -06:00

11 lines
375 B
Bash

#!/usr/bin/env bash
set -eux
systemctl unmask systemd-networkd systemd-resolved
systemctl enable --now systemd-networkd systemd-resolved
ln -sf /run/systemd/resolve/resolv.conf /mnt/etc/resolv.conf
arch-chroot /mnt systemctl unmask systemd-networkd systemd-resolved
arch-chroot /mnt systemctl enable systemd-networkd systemd-resolved
arch-chroot /mnt systemctl enable sshd