mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-28 00:17:22 +00:00
defiant
This commit is contained in:
parent
44780e9a9e
commit
fd72276c42
15 changed files with 741 additions and 167 deletions
14
install_arch
14
install_arch
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue