mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Rockchip family tweaks: add to group only if group doesn't exists yet
This way started to fail with Debian Trixie
This commit is contained in:
@@ -203,8 +203,8 @@ family_tweaks() {
|
|||||||
|
|
||||||
# Create gpio and i2c groups on the build rootfs; they are matched against
|
# Create gpio and i2c groups on the build rootfs; they are matched against
|
||||||
# udev rules to allow non-root user access to these resources
|
# udev rules to allow non-root user access to these resources
|
||||||
chroot_sdcard addgroup --system --quiet --gid 900 gpio
|
chroot_sdcard getent group gpio >/dev/null || chroot_sdcard addgroup --system --quiet --gid 900 gpio
|
||||||
chroot_sdcard addgroup --system --quiet --gid 901 i2c
|
chroot_sdcard getent group i2c >/dev/null || chroot_sdcard addgroup --system --quiet --gid 901 i2c
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user