Skip to content

Commit

Permalink
fix default groups in adduser config
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek committed Apr 1, 2024
1 parent c5534f0 commit 1c6aef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build-rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ cp ${overlay_dir}/etc/profile.d/resize.sh ${chroot_dir}/etc/profile.d/resize.sh
cp ${overlay_dir}/etc/rc.local ${chroot_dir}/etc/rc.local

# Add extra groups to adduser config
sed -i 's/#EXTRA_GROUPS=*/EXTRA_GROUPS="video adm dialout cdrom audio plugdev netdev input bluetooth"/g' ${chroot_dir}/etc/adduser.conf
sed -i 's/#ADD_EXTRA_GROUPS=0/ADD_EXTRA_GROUPS=1/g' ${chroot_dir}/etc/adduser.conf
sed -i 's/#EXTRA_GROUPS=.*/EXTRA_GROUPS="video adm dialout cdrom audio plugdev netdev input bluetooth floppy users"/g' ${chroot_dir}/etc/adduser.conf
sed -i 's/#ADD_EXTRA_GROUPS=.*/ADD_EXTRA_GROUPS=1/g' ${chroot_dir}/etc/adduser.conf

# Service to synchronise system clock to hardware RTC
cp ${overlay_dir}/usr/lib/systemd/system/rtc-hym8563.service ${chroot_dir}/usr/lib/systemd/system/rtc-hym8563.service
Expand Down

0 comments on commit 1c6aef8

Please sign in to comment.