From 14dbf3d51f9404133661d6908d75267f3fc007c5 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 2 Dec 2018 10:51:28 -0500 Subject: [PATCH] archlinux: Fix path for config files Since I am trying to get 004-postinstall to work in the installation media, the config paths need /mnt added to them. --- .archlinux/install-scripts/004-postinstall | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.archlinux/install-scripts/004-postinstall b/.archlinux/install-scripts/004-postinstall index 2ae82cde..02a6ca6f 100755 --- a/.archlinux/install-scripts/004-postinstall +++ b/.archlinux/install-scripts/004-postinstall @@ -16,11 +16,13 @@ arch-chroot /mnt ln -sf /usr/lib/systemd/system/systemd-timesyncd.service \ /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service # Enable colors in pacman by uncommenting the Color line. -sed -i '/Color/s/^#//g' /etc/pacman.conf -sed -i '/VerbosePkgLists/s/^#//g' /etc/pacman.conf +sed -i '/Color/s/^#//g' /mnt/etc/pacman.conf + +# Show package upgrades as a list +sed -i '/VerbosePkgLists/s/^#//g' /mnt/etc/pacman.conf # Give users in the wheel group permission to use sudo -echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers +echo "%wheel ALL=(ALL) ALL" >> /mnt/etc/sudoers # Create a new user account with sudo privileges and the fish shell. arch-chroot /mnt useradd -m -g users -G wheel -s /usr/bin/fish "$USERNAME"