Move sudoers to drop/00_image_builder

This commit is contained in:
timoxa0 2024-08-11 15:56:33 +05:00
parent 4ee376a1f0
commit 75b0b905bd
4 changed files with 17 additions and 7 deletions

View file

@ -54,8 +54,11 @@ chroot "$rootdir" pacman -R linux-aarch64 linux-firmware --noconfirm
log "Populating pacman key store"
chroot "$rootdir" pacman-key --init
chroot "$rootdir" pacman-key --populate archlinuxarm
log "Updating system and installing needed packages"
log "Enable pacman parallel downloads"
chroot "$rootdir" sed -i "s/#ParallelDownloads/ParallelDownloads/g" /etc/pacman.conf
log "Update key store"
chroot "$rootdir" pacman -Sy archlinux-keyring archlinuxarm-keyring --noconfirm
log "Updating system and installing needed packages"
chroot "$rootdir" pacman -Syu sudo bluez bluez-utils vulkan-freedreno networkmanager --noconfirm
# Install nabu specific packages
@ -77,7 +80,7 @@ gen_fstab "$rootdir"
# Add %wheel to sudoers
log "Adding %wheel to sudoers"
echo "%wheel ALL=(ALL:ALL) ALL" > "$rootdir/etc/sudoers.d/00_image_builder"
cp ./drop/00_image_builder "$rootdir/etc/sudoers.d/00_image_builder"
# Set default timezone
log "Setting default timezone"

View file

@ -48,8 +48,11 @@ chroot "$rootdir" pacman -R linux-aarch64 linux-firmware --noconfirm
log "Populating pacman key store"
chroot "$rootdir" pacman-key --init
chroot "$rootdir" pacman-key --populate archlinuxarm
log "Updating system and installing needed packages"
log "Enable pacman parallel downloads"
chroot "$rootdir" sed -i "s/#ParallelDownloads/ParallelDownloads/g" /etc/pacman.conf
log "Update key store"
chroot "$rootdir" pacman -Sy archlinux-keyring archlinuxarm-keyring --noconfirm
log "Updating system and installing needed packages"
chroot "$rootdir" pacman -Syu sudo gdm gnome-menus gnome-backgrounds gnome-control-center gnome-keyring xdg-user-dirs-gtk nautilus xdg-desktop-portal-gnome gnome-console bluez bluez-utils vulkan-freedreno networkmanager --noconfirm
# Install nabu specific packages
@ -71,7 +74,7 @@ gen_fstab "$rootdir"
# Add %wheel to sudoers
log "Adding %wheel to sudoers"
echo "%wheel ALL=(ALL:ALL) ALL" > "$rootdir/etc/sudoers.d/00_image_builder"
cp ./drop/00_image_builder "$rootdir/etc/sudoers.d/00_image_builder"
# Set default timezone
log "Setting default timezone"

View file

@ -48,8 +48,11 @@ chroot "$rootdir" pacman -R linux-aarch64 linux-firmware --noconfirm
log "Populating pacman key store"
chroot "$rootdir" pacman-key --init
chroot "$rootdir" pacman-key --populate archlinuxarm
log "Updating system and installing needed packages"
log "Enable pacman parallel downloads"
chroot "$rootdir" sed -i "s/#ParallelDownloads/ParallelDownloads/g" /etc/pacman.conf
log "Update key store"
chroot "$rootdir" pacman -Sy archlinux-keyring archlinuxarm-keyring --noconfirm
log "Updating system and installing needed packages"
chroot "$rootdir" pacman -Syu sudo plasma grub konsole dolphin ark bluez bluez-utils xorg-xrandr xorg-xinput qt5-virtualkeyboard vulkan-freedreno networkmanager --noconfirm
# Install nabu specific packages
@ -71,7 +74,7 @@ gen_fstab "$rootdir"
# Add %wheel to sudoers
log "Adding %wheel to sudoers"
echo "%wheel ALL=(ALL:ALL) ALL" > "$rootdir/etc/sudoers.d/00_image_builder"
cp ./drop/00_image_builder "$rootdir/etc/sudoers.d/00_image_builder"
# Set default timezone
log "Setting default timezone"

View file

@ -85,7 +85,8 @@ gen_fstab "$rootdir"
# Add %wheel to sudoers
log "Adding %wheel to sudoers"
echo "%wheel ALL=(ALL:ALL) ALL" > "$rootdir/etc/sudoers.d/00_image_builder"
cp ./drop/00_image_builder "$rootdir/etc/sudoers.d/00_image_builder"
# +++ Rotate gdm
log "Configuring gdm and gnome"