Skip to content

Commit 872b539

Browse files
authored
Rockchip family tweaks: add to group only if group doesn't exists yet
This way started to fail with Debian Trixie
1 parent 2d9cce1 commit 872b539

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/sources/families/rockchip.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ family_tweaks() {
203203

204204
# Create gpio and i2c groups on the build rootfs; they are matched against
205205
# udev rules to allow non-root user access to these resources
206-
chroot_sdcard addgroup --system --quiet --gid 900 gpio
207-
chroot_sdcard addgroup --system --quiet --gid 901 i2c
206+
chroot_sdcard getent group gpio >/dev/null || chroot_sdcard addgroup --system --quiet --gid 900 gpio
207+
chroot_sdcard getent group i2c >/dev/null || chroot_sdcard addgroup --system --quiet --gid 901 i2c
208208

209209
return 0
210210

0 commit comments

Comments
 (0)