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:
Igor
2025-08-10 21:38:47 +02:00
committed by GitHub
parent 2d9cce1846
commit 872b539b90

View File

@@ -203,8 +203,8 @@ family_tweaks() {
# Create gpio and i2c groups on the build rootfs; they are matched against
# udev rules to allow non-root user access to these resources
chroot_sdcard addgroup --system --quiet --gid 900 gpio
chroot_sdcard addgroup --system --quiet --gid 901 i2c
chroot_sdcard getent group gpio >/dev/null || chroot_sdcard addgroup --system --quiet --gid 900 gpio
chroot_sdcard getent group i2c >/dev/null || chroot_sdcard addgroup --system --quiet --gid 901 i2c
return 0