-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 24.04 images fail to build #3189
Comments
So the order that packages are set up in is the following:
And according to https://salsa.debian.org/utopia-team/dbus/-/blob/debian/unstable/debian/dbus-system-bus-common.postinst, the cc @bluca @smcv I'm not sure if this is already fixed in Debian and just needs to be backported to Ubuntu or if this could happen in Debian as well. |
It's the same everywhere, the dependency setup is complex in order to allow dbus-broker to exist - @smcv did we leave out dbus-daemon -> dbus-system-bus-common for a particular reason? It ships the common config/socket so it's something we always want to pull in? Or was it to allow dbus-daemon to purely provide a user session without affecting the system? |
Running the maintainer script of the package that contains The actual failure here is that To me, the error message |
@smcv Ah I wasn't aware that dpkg actually used NSS plugins at all. That's rather unfortunate. In that case your guess is very likely to be right, let me debug some more and figure out which NSS plugin might be causing the issue. |
Even if it's a false positive, should we move |
Yes, The fact that the |
No, the majority of it should stay in The last line (the one that creates |
Everything that interacts with the user database in the canonical way ( |
Another possible reason for this error message to be seen is if a chroot-like tool copies in I don't think that's what's happening here, because even if mkosi was copying in those files, it seems to be doing all of its apt/dpkg operations in a single transaction, so there would be no opportunity for edits to be reverted. But it has been seen in some use-cases of |
Actually... I notice this in the log:
If If that's what is happening here, I would really have expected But, if |
@smcv We run dpkg with What I wonder though, if |
It turns out my patch to have dpkg look up users in the root directory instead of on the host was never merged: https://lists.debian.org/debian-dpkg/2023/04/msg00002.html. So dpkg-statoverride is indeed still looking up users on the host so if my suspicion that |
It will usually chroot into the given root to run maintainer scripts. If you use dbus handles Similarly, maintscript fragments generated by debhelper mostly handle
If you're generating a chroot for a relatively well-known package-set that is not too much of a moving target, like "all of an Ubuntu 24.04 desktop", pre-preparing an |
Using symlinks instead of bind mounts fixes the issue, so I think my assumption was correct. |
Bind mounts don't reflect changes to the original files if they're replaced instead of modified. Let's use symlinks instead so that changes to the original files are always reflected. Fixes systemd#3189
The linked PR switches us over to symlinks instead of bind mounts which fixes the issue. |
Bind mounts don't reflect changes to the original files if they're replaced instead of modified. Let's use symlinks instead so that changes to the original files are always reflected. Fixes systemd#3189
Bind mounts don't reflect changes to the original files if they're replaced instead of modified. Let's use symlinks instead so that changes to the original files are always reflected. Fixes systemd#3189
mkosi commit the issue has been seen with
653adbe
Used host distribution
Ubuntu 24.04
Used target distribution
Ubuntu 24.04
Linux kernel version used
6.8.0-1016-aws
CPU architectures issue was seen on
None
Unexpected behaviour you saw
Ubuntu 24.04 images fail to build.
In #16
dbus
andlibpam-systemd
were added to thedebootstrap
invocation, however in #1442 this was effectively removed with the suggestion to add these packages manually to thePackages
list.This does not seem to work. If I edit
mkosi/distributions/debian.py
to add those packages to thedebootstrap
-equivalent installation, my build completes successfully.Used mkosi config
mkosi output
The text was updated successfully, but these errors were encountered: