Disable password inquiry during installation
This commit is contained in:
parent
3916255544
commit
f560c8de7b
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue