This commit is contained in:
mitchell 2025-10-19 02:42:39 -04:00
parent 44780e9a9e
commit fd72276c42
15 changed files with 741 additions and 167 deletions

View file

@ -26,8 +26,6 @@ function main
if test "$is_encrypt" = 'y'; or test "$is_encrypt" = 'Y'
add_lvm2_mkinitcpio_hook true
else
add_lvm2_mkinitcpio_hook
end
configure_sudo
@ -111,19 +109,19 @@ end
function configure_sudo
log 'Adding and configuring sudo group'
log 'Adding and configuring wheel group'
install sudo
groupadd sudo
groupadd wheel
echo "# Enable sudo group
%sudo ALL=(ALL) ALL" | sudo tee /etc/sudoers.d/sudo_group
echo "# Enable wheel group
%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel_group
end
function create_admin_user -a username
log "Creating user $username and adding to sudo group"
log "Creating user $username and adding to wheel group"
useradd -m $username
passwd $username
gpasswd -a $username sudo
gpasswd -a $username wheel
end
function install_grub -a boot_mode target encrypted_uuid