install-stage2: handle potentially missing group "bluetooth"

master
BodgeMaster 2026-07-16 18:21:31 +02:00
parent 3e5341dc89
commit 2ecf70e0b1
1 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@ read -p "Enter username: " NEW_USER
#TODO: let the user choose additional groups (suggest sane defaults for different use cases) #TODO: let the user choose additional groups (suggest sane defaults for different use cases)
# cdrom? optical? storage? what they do? # cdrom? optical? storage? what they do?
# users (dows this even do anything) # users (dows this even do anything)
useradd -m -s /bin/bash -G wheel,users,kvm,video,audio,dialout,network,scanner,bluetooth "$NEW_USER" useradd -m -s /bin/bash -G wheel,users,kvm,video,audio,dialout,network,scanner "$NEW_USER"
grep -q "bluetooth" /etc/group && usermod -aG bluetooth "$NEW_USER"
passwd "$NEW_USER" passwd "$NEW_USER"
echo "Cleaning up installation files..." echo "Cleaning up installation files..."