From 496108542546f0ff0253e4a8dace81d89d145dd0 Mon Sep 17 00:00:00 2001 From: Harald Sitter Date: Fri, 19 Sep 2025 23:47:04 +0200 Subject: [PATCH] don't purg sub id files they are needed so sub ids actually get created from the manpage: > Note, that newusers, useradd, and usermod will only create entries > in /etc/subuid if subid delegation is managed via subid files. --- mkosi.finalize.d/99-etc.sh.chroot | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mkosi.finalize.d/99-etc.sh.chroot b/mkosi.finalize.d/99-etc.sh.chroot index 1306ab0..7ff8ad5 100755 --- a/mkosi.finalize.d/99-etc.sh.chroot +++ b/mkosi.finalize.d/99-etc.sh.chroot @@ -40,11 +40,14 @@ rm --force \ group- \ localtime \ machine-id \ - subuid \ - subgid- \ - subgid \ - subgid- \ crypttab \ vconsole.conf \ hostname \ locale.conf + + # These are actually needed and must be copied from the factory onto the host. If they are missing useradd will + # not configure subuids, breaking podman for instance. + # subuid \ + # subgid- \ + # subgid \ + # subgid- \