systemd / mkosi

💽 Build Bespoke OS Images
https://mkosi.systemd.io/
1.2k stars 325 forks source link

Failure when building inside container #3186

Closed shocklateboy92 closed 2 weeks ago

shocklateboy92 commented 2 weeks ago

mkosi commit the issue has been seen with

a15a97da5a102414bdd461e92e9faabf899692cc

Used host distribution

Arch Linux

Used target distribution

Arch Linux

Linux kernel version used

6.11.6-arch1-1

CPU architectures issue was seen on

x86_64

Unexpected behaviour you saw

Crashed with the provided output when building inside an ArchLinux distrobox (docker) container.

Used mkosi config

The config in the systemd repo as of the following commit:
https://github.com/systemd/systemd/commit/9466fe014f6083825ed819fe17bf98f72baa3af9

mkosi output

fernie@sisko ~/src/systemd (git)-[main] % ../mkosi/bin/mkosi --debug
‣ Loading configuration file /home/fernie/src/systemd/mkosi.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.conf.d/05-tools/mkosi.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.conf.d/05-tools/mkosi.conf.d/arch.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.conf.d/10-arch/mkosi.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.conf.d/20-build.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/build/mkosi.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/build/mkosi.conf.d/arch/mkosi.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/exitrd/mkosi.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/exitrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/exitrd/mkosi.conf.d/20-build.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/initrd/mkosi.conf.d/arch.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/initrd/mkosi.conf.d/build.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/minimal-0/mkosi.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/minimal-1/mkosi.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/minimal-base/mkosi.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/minimal-base/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /home/fernie/src/systemd/mkosi.images/minimal-base/mkosi.conf.d/20-build.conf
‣ /home/fernie/src/systemd/build/mkosi.cache/arch~20241020.0.271562~x86-64~build.cache does not exist, not reusing cached images
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ /home/fernie/src/systemd/build/mkosi.cache/arch~20241020.0.271562~x86-64~exitrd.cache does not exist, not reusing cached images
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ /home/fernie/src/systemd/build/mkosi.cache/arch~20241020.0.271562~x86-64~initrd.cache does not exist, not reusing cached images
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ /home/fernie/src/systemd/build/mkosi.cache/arch~20241020.0.271562~x86-64~minimal-base.cache does not exist, not reusing cached images
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ /home/fernie/src/systemd/build/mkosi.cache/arch~20241020.0.271562~x86-64.cache does not exist, not reusing cached images
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf
‣ Loading configuration file /tmp/tmp1gns0u7d/resources/mkosi-initrd/mkosi.conf.d/10-arch.conf
‣ + /usr/bin/systemd-repart --version
‣ Validating certificates and keys
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ + /usr/lib/systemd/systemd-keyutil validate --certificate /work/home/fernie/src/systemd/mkosi.crt --private-key /work/home/fernie/src/systemd/mkosi.key
‣ Syncing package manager metadata
‣ Acquiring lock on /home/fernie/.cache/mkosi/arch~20241020.0.271562~x86-64/cache/pacman
‣ Acquired lock on /home/fernie/.cache/mkosi/arch~20241020.0.271562~x86-64/cache/pacman
‣ Acquiring lock on /home/fernie/.cache/mkosi/arch~20241020.0.271562~x86-64/lib/pacman
‣ Acquired lock on /home/fernie/.cache/mkosi/arch~20241020.0.271562~x86-64/lib/pacman
‣ + pacman --root=/buildroot --logfile=/dev/null --dbpath=/var/lib/pacman --cachedir=/var/cache/pacman/mkosi --cachedir=/var/cache/pacman/pkg --hookdir=/buildroot/etc/pacman.d/hooks --arch x86_64 --color auto --noconfirm --sync --refresh
Traceback (most recent call last):
  File "/home/fernie/src/mkosi/mkosi/sandbox.py", line 873, in <module>
  File "/home/fernie/src/mkosi/mkosi/sandbox.py", line 838, in main
  File "/home/fernie/src/mkosi/mkosi/sandbox.py", line 479, in execute
  File "/home/fernie/src/mkosi/mkosi/sandbox.py", line 295, in mount_rbind
  File "/home/fernie/src/mkosi/mkosi/sandbox.py", line 98, in oserror
FileNotFoundError: [Errno 2] No such file or directory: 'newroot/etc/resolv.conf'
‣ "/usr/bin/python3 -SI /home/fernie/src/mkosi/mkosi/sandbox.py --proc /proc --unsetenv TMPDIR --setenv SYSTEMD_OFFLINE 1 --ro-bind /usr /usr --symlink usr/bin /bin --symlink usr/bin /sbin --symlink usr/lib /lib --symlink usr/lib /lib64 --ro-bind /etc/ld.so.cache /etc/ld.so.cache --dir /var/tmp --dir /var/log --unshare-ipc --ro-bind /home/fernie/src/mkosi/mkosi/sandbox.py /sandbox.py --dev /dev --ro-bind /etc/resolv.conf /etc/resolv.conf --setenv PATH /usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/sbin:/sbin:/bin --ro-bind /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/sandbox/etc /etc --dir /opt --bind /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/tmp/mkosi-var-tmp-3e4fd3cc58d245f1 /srv --bind /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/tmp/mkosi-var-tmp-622c62e3519a4315 /media --bind /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/tmp/mkosi-var-tmp-69de4e939c2d46f1 /mnt --bind /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/tmp/mkosi-var-tmp-7c954393dfb041db /var --dir /run --dir /tmp --bind /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/tmp/mkosi-var-tmp-d235a2356a474b6d /var/tmp --bind /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/root /buildroot --ro-bind /etc/ca-certificates /etc/ca-certificates --ro-bind /etc/pacman.d/gnupg /etc/pacman.d/gnupg --ro-bind /etc/ssl /etc/ssl --bind /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/repository /repository --bind '/home/fernie/.cache/mkosi/arch~20241020.0.271562~x86-64/cache/pacman' /var/cache/pacman --bind '/home/fernie/.cache/mkosi/arch~20241020.0.271562~x86-64/lib/pacman' /var/lib/pacman --ro-bind /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/repository /var/cache/pacman/mkosi --bind /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/root/var/lib/pacman/local /var/lib/pacman/local --become-root --suppress-chown --ro-bind-try /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/root/etc/machine-id /buildroot/etc/machine-id --ro-bind-try /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/root/etc/passwd /etc/passwd --ro-bind-try /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/root/etc/group /etc/group --ro-bind-try /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/root/etc/shadow /etc/shadow --ro-bind-try /home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt/root/etc/gshadow /etc/gshadow --ro-bind /etc/ca-certificates/extracted/tls-ca-bundle.pem /proxy.cacert -- pacman --root=/buildroot --logfile=/dev/null --dbpath=/var/lib/pacman --cachedir=/var/cache/pacman/mkosi --cachedir=/var/cache/pacman/pkg --hookdir=/buildroot/etc/pacman.d/hooks --arch x86_64 --color auto --noconfirm --sync --refresh" returned non-zero exit code 1.
‣ + rm -rf -- /work/home/fernie/.cache/mkosi/mkosi-workspace-9sxv41tt
‣ + tput cnorm
‣ + tput smam
Traceback (most recent call last):
  File "/home/fernie/src/mkosi/mkosi/run.py", line 62, in uncaught_exception_handler
    yield
  File "/usr/lib/python3.12/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/fernie/src/mkosi/mkosi/__main__.py", line 36, in main
    run_verb(args, images, resources=resources)
  File "/home/fernie/src/mkosi/mkosi/__init__.py", line 4763, in run_verb
    sync_repository_metadata(args, images, resources=resources, dst=Path(metadata_dir))
  File "/home/fernie/src/mkosi/mkosi/__init__.py", line 4454, in sync_repository_metadata
    context.config.distribution.package_manager(context.config).sync(
  File "/home/fernie/src/mkosi/mkosi/installer/pacman.py", line 180, in sync
    cls.invoke(context, "--sync", ["--refresh", *(["--refresh"] if force else [])])
  File "/home/fernie/src/mkosi/mkosi/installer/pacman.py", line 171, in invoke
    return run(
           ^^^^
  File "/home/fernie/src/mkosi/mkosi/run.py", line 150, in run
    with spawn(
         ^^^^^^
  File "/usr/lib/python3.12/contextlib.py", line 144, in __exit__
    next(self.gen)
  File "/home/fernie/src/mkosi/mkosi/run.py", line 295, in spawn
    raise subprocess.CalledProcessError(returncode, cmdline)
subprocess.CalledProcessError: Command '['pacman', '--root=/buildroot', '--logfile=/dev/null', '--dbpath=/var/lib/pacman', '--cachedir=/var/cache/pacman/mkosi', '--cachedir=/var/cache/pacman/pkg', '--hookdir=/buildroot/etc/pacman.d/hooks', '--arch', 'x86_64', '--color', 'auto', '--noconfirm', '--sync', '--refresh']' returned non-zero exit status 1.
DaanDeMeyer commented 2 weeks ago

@shocklateboy92 Can you give me a reproducer with distrobox by any chance? I can't figure it out from just the logs unfortunately.

Or even better, run again with the newly added --debug-sandbox and post the output back here.

kerneis-anssi commented 2 weeks ago

I'm not sure if it's the same issue, because I get slightly further, but in case it helps: trying to build an arch image from a toolbx container on a Fedora host, the "installing arch" step fails because pacman cannot update its keyring.

Applying the suggested strace trick, and dropping inside a debug shell to check the permissions of /etc/pacman.d/gnupg :

$ sudo ~/src/mkosi/bin/mkosi -d arch --debug-shell build
[…]
write(1, "downloading required keys...\n", 29downloading required keys...
) = 29
faccessat2(AT_FDCWD, "/etc/pacman.d/gnupg/pubring.gpg", W_OK, AT_SYMLINK_NOFOLLOW) = -1 EROFS (Read-only file system)
write(2, "\33[1;31merror: \33[0m", 18error: )  = 18
write(2, "keyring is not writable\n", 24keyring is not writable
) = 24
faccessat2(AT_FDCWD, "/etc/pacman.d/gnupg/pubring.gpg", W_OK, AT_SYMLINK_NOFOLLOW) = -1 EROFS (Read-only file system)
write(2, "\33[1;31merror: \33[0m", 18error: )  = 18
write(2, "keyring is not writable\n", 24keyring is not writable
) = 24
write(2, "\33[1;31merror: \33[0m", 18error: )  = 18
write(2, "required key missing from keyrin"..., 34required key missing from keyring
) = 34
write(2, "\33[1;31merror: \33[0m", 18error: )  = 18
write(2, "failed to commit transaction (un"..., 48failed to commit transaction (unexpected error)
) = 48
write(1, "Errors occurred, no packages wer"..., 44Errors occurred, no packages were upgraded.
) = 44
close(6)                                = 0
unlink("/var/lib/pacman/db.lck")        = 0
ioctl(1, TCGETS, {c_iflag=ICRNL|IXON, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
write(1, "\33[?25h", 6)                 = 6
rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f43304fed00}, NULL, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f43304fed00}, NULL, 8) = 0
close(5)                                = 0
rt_sigaction(SIGPIPE, NULL, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f43304fed00}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f43304fed00}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f43304fed00}, NULL, 8) = 0
close(3)                                = 0
close(4)                                = 0
exit_group(1)                           = ?
+++ exited with 1 +++
‣ "strace pacman --root=/buildroot --logfile=/dev/null --dbpath=/var/lib/pacman --cachedir=/var/cache/pacman/mkosi --cachedir=/var/cache/pacman/pkg --hookdir=/buildroot/etc/pacman.d/hooks --arch x86_64 --color auto --noconfirm --sync --needed --assume-installed initramfs filesystem" returned non-zero exit code 1.
bash-5.2# mount | grep /etc
/dev/mapper/luks-21843c83-977a-4bc3-87ce-d8e2c17e2ea9 on /etc type btrfs (rw,nosuid,nodev,relatime,seclabel,compress=zstd:1,ssd,space_cache=v2,subvolid=257,subvol=/home)
overlay on /etc/alternatives type overlay (ro,nosuid,nodev,relatime,context="system_u:object_r:container_file_t:s0:c1022,c1023",lowerdir=/var/home/kerneis/.local/share/containers/storage/overlay/l/H6CGS6BDH2CCJCTK36KJRUYXX6:/var/home/kerneis/.local/share/containers/storage/overlay/l/H6CGS6BDH2CCJCTK36KJRUYXX6/../diff1:/var/home/kerneis/.local/share/containers/storage/overlay/l/T2DJSVAW4EUOXX62SNB4NQFGG3,upperdir=/var/home/kerneis/.local/share/containers/storage/overlay/712c7d3ff6824e6e94a353b36e88d3058ff1a16e89099e7d033030ac9e8dc8f5/diff,workdir=/var/home/kerneis/.local/share/containers/storage/overlay/712c7d3ff6824e6e94a353b36e88d3058ff1a16e89099e7d033030ac9e8dc8f5/work,redirect_dir=nofollow,userxattr)
overlay on /etc/pacman.d/gnupg type overlay (ro,nosuid,nodev,relatime,context="system_u:object_r:container_file_t:s0:c1022,c1023",lowerdir=/var/home/kerneis/.local/share/containers/storage/overlay/l/H6CGS6BDH2CCJCTK36KJRUYXX6:/var/home/kerneis/.local/share/containers/storage/overlay/l/H6CGS6BDH2CCJCTK36KJRUYXX6/../diff1:/var/home/kerneis/.local/share/containers/storage/overlay/l/T2DJSVAW4EUOXX62SNB4NQFGG3,upperdir=/var/home/kerneis/.local/share/containers/storage/overlay/712c7d3ff6824e6e94a353b36e88d3058ff1a16e89099e7d033030ac9e8dc8f5/diff,workdir=/var/home/kerneis/.local/share/containers/storage/overlay/712c7d3ff6824e6e94a353b36e88d3058ff1a16e89099e7d033030ac9e8dc8f5/work,redirect_dir=nofollow,userxattr)
overlay on /etc/pki type overlay (ro,nosuid,nodev,relatime,context="system_u:object_r:container_file_t:s0:c1022,c1023",lowerdir=/var/home/kerneis/.local/share/containers/storage/overlay/l/H6CGS6BDH2CCJCTK36KJRUYXX6:/var/home/kerneis/.local/share/containers/storage/overlay/l/H6CGS6BDH2CCJCTK36KJRUYXX6/../diff1:/var/home/kerneis/.local/share/containers/storage/overlay/l/T2DJSVAW4EUOXX62SNB4NQFGG3,upperdir=/var/home/kerneis/.local/share/containers/storage/overlay/712c7d3ff6824e6e94a353b36e88d3058ff1a16e89099e7d033030ac9e8dc8f5/diff,workdir=/var/home/kerneis/.local/share/containers/storage/overlay/712c7d3ff6824e6e94a353b36e88d3058ff1a16e89099e7d033030ac9e8dc8f5/work,redirect_dir=nofollow,userxattr)
tmpfs on /etc/resolv.conf type tmpfs (rw,nosuid,nodev,seclabel,size=3112996k,nr_inodes=819200,mode=755,inode64)
overlay on /etc/ssl type overlay (ro,nosuid,nodev,relatime,context="system_u:object_r:container_file_t:s0:c1022,c1023",lowerdir=/var/home/kerneis/.local/share/containers/storage/overlay/l/H6CGS6BDH2CCJCTK36KJRUYXX6:/var/home/kerneis/.local/share/containers/storage/overlay/l/H6CGS6BDH2CCJCTK36KJRUYXX6/../diff1:/var/home/kerneis/.local/share/containers/storage/overlay/l/T2DJSVAW4EUOXX62SNB4NQFGG3,upperdir=/var/home/kerneis/.local/share/containers/storage/overlay/712c7d3ff6824e6e94a353b36e88d3058ff1a16e89099e7d033030ac9e8dc8f5/diff,workdir=/var/home/kerneis/.local/share/containers/storage/overlay/712c7d3ff6824e6e94a353b36e88d3058ff1a16e89099e7d033030ac9e8dc8f5/work,redirect_dir=nofollow,userxattr)
bash-5.2# 
DaanDeMeyer commented 2 weeks ago

@kerneis-anssi This is expected, you have to make sure the keyring is up-to-date before invoking mkosi, unrelated to this issue.

shocklateboy92 commented 2 weeks ago

Here is the output with --debug-sandbox

debug-sandbox-output-stderr.txt debug-sandbox-output-stdout.txt

shocklateboy92 commented 2 weeks ago

Hey, so the machine rebooted and I can no longer reproduce the issue even on the same distrobox.

I really appreciate the effort to understand the root cause, but I don't see that being feasible anymore :face_with_diagonal_mouth:

Closing till I can find another way to reproduce the issue.