diff --git a/static/larbs.sh b/static/larbs.sh index f635791d4..0bc86699c 100755 --- a/static/larbs.sh +++ b/static/larbs.sh @@ -293,7 +293,7 @@ adduserandpass || error "Error adding username and/or password." # in a fakeroot environment, this is required for all builds with AUR. trap 'rm -f /etc/sudoers.d/larbs-temp' HUP INT QUIT TERM PWR EXIT echo "%wheel ALL=(ALL) NOPASSWD: ALL -Defaults:%wheel runcwd=*" >/etc/sudoers.d/larbs-temp +Defaults:%wheel,root runcwd=*" >/etc/sudoers.d/larbs-temp # Make pacman colorful, concurrent downloads and Pacman eye-candy. grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf @@ -375,5 +375,8 @@ echo "Defaults editor=/usr/bin/nvim" >/etc/sudoers.d/02-larbs-visudo-editor mkdir -p /etc/sysctl.d echo "kernel.dmesg_restrict = 0" > /etc/sysctl.d/dmesg.conf +# Cleanup +rm -f /etc/sudoers.d/larbs-temp + # Last message! Install complete! finalize