activate wheel group in installer script

This commit is contained in:
Maximilian Keßler 2022-07-29 12:09:08 +02:00
parent f7136fd900
commit ad3882efc7

View file

@ -157,6 +157,9 @@ arch-chroot /mnt useradd --create-home --user-group --shell /usr/bin/zsh --group
arch-chroot /mnt chsh -s /usr/bin/zsh arch-chroot /mnt chsh -s /usr/bin/zsh
echo "Activating wheel group"
sed -i 's/^\#\s%wheel\sALL=(ALL:ALL)\sNOPASSWD:\sALL$/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/' /mnt/etc/sudoers
echo "${user}:${user_password}" | chpasswd --root /mnt echo "${user}:${user_password}" | chpasswd --root /mnt
echo "root:${user_password}" | chpasswd --root /mnt echo "root:${user_password}" | chpasswd --root /mnt
@ -176,4 +179,5 @@ Manual configuration is still needed for the following
- configure grub parameters for cryptvolume and resume hook - configure grub parameters for cryptvolume and resume hook
- generate main grub.cfg with grub-mkconfig -o /boot/grub/grub.cfg - generate main grub.cfg with grub-mkconfig -o /boot/grub/grub.cfg
--------------------- ---------------------
EOF