From dd556b388bee8d60c69cd68f208cd69016341245 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 24 Mar 2024 12:47:10 +0100 Subject: [PATCH] Disable password inquiry during installation --- scripts/Arch/OS/install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/Arch/OS/install.sh b/scripts/Arch/OS/install.sh index 8db2750a..ebbb5da5 100755 --- a/scripts/Arch/OS/install.sh +++ b/scripts/Arch/OS/install.sh @@ -9,6 +9,15 @@ pushd "$rootDir" > /dev/null; sudo pacman --noconfirm -Syu pacman-contrib; +function autoRoot() { + { + echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" + } > "/etc/sudoers.d/PortValhalla.conf"; +} + +runHook initialize \ + autoRoot; + runHook installDrivers; runHook installSoftware \ @@ -21,4 +30,7 @@ runHook initializeProfile \ INSTALL_FONTS=0 \ . "$(pwd)/../../../scripts/Common/Config/UserProfile/install.sh"; +runHook postInstall \ + rm "/etc/sudoers.d/PortValhalla.conf"; + popd > /dev/null;