From 872b539b90a84051a7be310f7ea19d056f25044c Mon Sep 17 00:00:00 2001 From: Igor Date: Sun, 10 Aug 2025 21:38:47 +0200 Subject: [PATCH] Rockchip family tweaks: add to group only if group doesn't exists yet This way started to fail with Debian Trixie --- config/sources/families/rockchip.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/sources/families/rockchip.conf b/config/sources/families/rockchip.conf index b67437d54..b924a4958 100644 --- a/config/sources/families/rockchip.conf +++ b/config/sources/families/rockchip.conf @@ -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