what does suse/Ubuntu do different?
what does suse/Ubuntu do different?
Posted Apr 23, 2025 17:25 UTC (Wed) by rcampos (subscriber, #59737)Parent article: Addressing UID/GID drift in rpm-ostree and bootc
Does anyone know?
Posted Apr 23, 2025 18:36 UTC (Wed)
by zyga (subscriber, #81533)
[Link]
Ordinary application squashfs cannot use users or groups ot eh we than root. This is sometimes problematic and requires patching applications to compensate. The reason for this is that one cannot allocate such IDs at runtime and some mimetic value must be baked into the signed disk image.
The second problem is that the same base squashfs snap is used on Ubuntu Core distribution, classic Ubuntu, Debian, Fedora and any other. In all the cases the user and group database is provided by the host and, outside of core itself, may not line up exactly as one would want.
Posted Apr 24, 2025 6:24 UTC (Thu)
by danieldk (subscriber, #27876)
[Link]
Disclaimer: I don't use SUSE, this is what I found based on the documentation.
Posted Apr 25, 2025 8:00 UTC (Fri)
by kukuk (subscriber, #39885)
[Link]
SUSE does not ship /etc/passwd or /etc/group but generate that at install time, we do that at least for MicroOS and derivatives, and add new users via sysusers.d at update time.
The /etc directory of most Linux distributions contains four kind of files:
If you update that with a package manager, the package manager will try to merge that for you. If you have an image based system, that's not possible. That's why I don't understand why some image based distributions could come to the idea to ship /etc with their image. It's a big mess if you update the image.
The mid- to long term plan for SUSE is to have a hermetic-usr system. For many core package we have that already, but it's still a long way to go, especially as many upstream projects are not interested in this and reject patches.
what does suse/Ubuntu do different?
what does suse/Ubuntu do different?
what does suse/Ubuntu do different?
* host specific files generated at install time or first boot, like /etc/machine-id, /etc/passwd, /etc/group, ...
* distribution provided configuration files, which admins and distributors can change
* admin made changes
* stuff which does not belong to /etc, but where upstream projects are reluctant to fix that. Why do we need shell scripts for grub in /etc?
But that's the only clean solution for the current /etc mess in update case, even for traditional distributions.
