Disable password inquiry during installation

This commit is contained in:
Manuel Thalmann 2024-03-24 12:47:10 +01:00
parent 3916255544
commit f560c8de7b

View file

@ -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;