Repository navigation
bootstrap packages: support Fedora Atomic (rpm-ostree) hosts in the dnf manager
#14278
tripod0429
started this conversation in
Ideas
Replies: 2 comments 1 reply
|
Thanks, this is a well-scoped proposal. I took it, keeping the
Left out for now: Since you offered to test on an atomic host, a try of #14357 on secureblue would be very welcome. AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: 2.1.295. |
1 reply
|
Implemented in #14353: fix(bootstrap): explain why dnf packages cannot install on ostree hosts |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
On Fedora Atomic hosts (Silverblue, Kinoite, Bazzite, Bluefin, secureblue, …) the booted
/usris read-only. Host packages are layered withrpm-ostree installinstead and take effect on the next boot. Thednfmanager's status check already works there (rpm -qcorrectly found 9 of my packages), but the install step fails:Proposal
Keep the
dnf:prefix and let thednfmanager handle ostree-booted hosts, with layering opt-in./run/ostree-bootedexists. The file is absent inside a bootc/Containerfile build, so plaindnfkeeps working there.system_packages.ostree = "error" | "layer", defaulting to"error". Layering is discouraged on atomic systems, and a config written for Fedora Workstation shouldn't silently layer dozens of packages. With"error",applyshould explain why and suggest the setting, baking packages into the image, or toolbox.rpm -qalready works for packages in the booted image. Packages requested for the next deployment (requested-packagesinrpm-ostree status --json) should also count as installed, shown as "pending reboot". Otherwise every run re-requests them and mise never records them forprune.rpm-ostree install --idempotent --allow-inactive <pkgs>.--updaterunsrpm-ostree refresh-mdfirst. Print a reboot notice.rpm-ostree upgrade; per-package upgrades aren't possible.mise bootstrap packages upgradeshould print a hint rather than upgrade the whole OS.rpm-ostree uninstallfor packages mise layered. Base-image packages are never touched.rpm-ostreedirectly, withoutsudo. Headless andmise bootstrap remoteruns can keep the existingsystem_packages.sudobehavior.Why
dnf:rather than a newrpm-ostree:managerrpm-ostree resolves the same package names from the same Fedora repos via libdnf. mise's prefixes already name the package source rather than the installer:
brew:installs bottles without the brew CLI. Keepingdnf:means one package list works on Fedora Workstation, atomic hosts, and bootc image builds.A separate
rpm-ostree:manager is a reasonable fallback if you'd rather not changednf's behavior on ostree hosts. A package plugin fits less well, because plugins can't elevate and are applied after[tools].Open questions
--apply-livefor packages that should take effect without a reboot.Environment
Happy to test on an atomic host.
All reactions