From 6bd649fc4b74d10e183531cd046ee7872fedb40e Mon Sep 17 00:00:00 2001 From: Christian Rebischke Date: Sun, 7 May 2017 21:26:42 +0200 Subject: Different enhancements added polkit to pacstrap for systemctl poweroff, added sudo to poweroff command, moved link for systemd-resolved to postinstall.sh --- http/install-chroot.sh | 3 --- http/install.sh | 2 +- provision/postinstall.sh | 3 +++ vagrant.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/http/install-chroot.sh b/http/install-chroot.sh index af83213..28e4921 100644 --- a/http/install-chroot.sh +++ b/http/install-chroot.sh @@ -37,9 +37,6 @@ Name=eth0 DHCP=ipv4 EOF -systemctl start systemd-resolved -ln -sf /var/run/systemd/resolve/resolv.conf /etc/resolv.conf - # enabling important services systemctl enable sshd systemctl enable systemd-networkd diff --git a/http/install.sh b/http/install.sh index 9c8007b..682bdd5 100644 --- a/http/install.sh +++ b/http/install.sh @@ -28,7 +28,7 @@ mount "${device}2" /mnt cp /etc/pacman.d/mirrorlist /tmp/mirrorlist.backup sed -i 's/^#Server/Server/' /tmp/mirrorlist.backup rankmirrors -vn 6 /tmp/mirrorlist.backup > /etc/pacman.d/mirrorlist -pacstrap /mnt base grub openssh sudo +pacstrap /mnt base grub openssh sudo polkit swapon "${device}1" genfstab -p /mnt >> /mnt/etc/fstab swapoff "${device}1" diff --git a/provision/postinstall.sh b/provision/postinstall.sh index 245df8d..be094e4 100644 --- a/provision/postinstall.sh +++ b/provision/postinstall.sh @@ -9,3 +9,6 @@ localectl set-locale "LANG=en_US.UTF-8" localectl set-keymap "us" localectl set-x11-keymap "us" timedatectl set-ntp true + +#setting link to systemd-resolved +ln -sf /var/run/systemd/resolve/resolv.conf /etc/resolv.conf diff --git a/vagrant.json b/vagrant.json index 912b18c..11f791c 100644 --- a/vagrant.json +++ b/vagrant.json @@ -18,7 +18,7 @@ "ssh_password": "vagrant", "ssh_port": 22, "ssh_wait_timeout": "10000s", - "shutdown_command": "systemctl poweroff", + "shutdown_command": "sudo systemctl poweroff", "guest_additions_mode": "disable", "vboxmanage": [ [ -- cgit v1.2.3-54-g00ecf