Disable password inquiry during installation

This commit is contained in:
Manuel Thalmann 2024-03-24 12:47:10 +01:00
parent 77791fdcec
commit dd556b388b

View file

@ -9,6 +9,15 @@ pushd "$rootDir" > /dev/null;
sudo pacman --noconfirm -Syu pacman-contrib; 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 installDrivers;
runHook installSoftware \ runHook installSoftware \
@ -21,4 +30,7 @@ runHook initializeProfile \
INSTALL_FONTS=0 \ INSTALL_FONTS=0 \
. "$(pwd)/../../../scripts/Common/Config/UserProfile/install.sh"; . "$(pwd)/../../../scripts/Common/Config/UserProfile/install.sh";
runHook postInstall \
rm "/etc/sudoers.d/PortValhalla.conf";
popd > /dev/null; popd > /dev/null;