Skip to content

Commit ef5966a

Browse files
Rockchip family tweaks: add to group only if group doesn't exists yet (#8479)
This way started to fail with Debian Trixie Co-authored-by: Paolo <paolo.sabatino@gmail.com>
1 parent b15593b commit ef5966a

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
@@ -237,8 +237,8 @@ family_tweaks() {
237237

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

243243
return 0
244244

0 commit comments

Comments
 (0)