base-image/scripts/enable_services.sh

11 lines
375 B
Bash
Raw Normal View History

2022-12-16 02:45:20 +00:00
#!/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