-
Notifications
You must be signed in to change notification settings - Fork 814
dnf --installroot documentation needs updating for newer Fedora and DNF #6119
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
Comments
I cannot build images from scratch since Fedora 42. I used the following within a script that I run with
Since Fedora 42 I get the following errors:
Adding |
Looks like the install is trying to communicate with systemd? Could you try this in rootful mode? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently Buildah's documentation mentions two examples where
dnf --installroot
is used to generate a rootfs for Buildah:buildah unshare
manpageBest I can tell this still works on EL9, EL10 as well as Fedora 40 and below. However, trying these on Fedora 41+, these commands don't actually work. Presumably this is because Fedora 41+ have switched to DNF5, which is not fully backwards compatible with earlier versions of DNF.
In my testing I needed to at least add the option
--use-host-config
to mydnf
invocation to reproduce these commands on Fedora 41. That itself would be an easy fix, but I noticed at least on some Fedora 41 variants an additional workaround is necessary when attempting to do the rootless install thebuildah unshare
documentation describes. I'm not sure that's a workaround that'd be appropriate to include in documentation, or whether that points to an issue elsewhere.The text was updated successfully, but these errors were encountered: