I'm debugging a boot failure (probably a bug in systemd or selinux) and I need to inspect transaction history to identify packages for an upgrade. Surprisingly "dnf5 history" refuse to operate on read-only file system: # dnf5 history info 210 Cannot open log file: //var/log/dnf5.log: Read-only file system Could you please change DNF5 to be able to perform read operations without writing to a file system?
I forgot to mention DNF5 version: dnf5-5.0.4-3.fc38.x86_64 libdnf5-5.0.4-3.fc38.x86_64
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle. Changing version to 38.
This message is a reminder that Fedora Linux 38 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '38'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 38 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Still in issue in dnf5-5.2.1.0-20240507005045.0.ge4502c21.fc41.x86_64.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42.
I can't to reproduce it on f43. The way I try to reproduce it is: - sudo btrfs property set / ro true - dnf history info Seems to be working fine. The log file mentioned initially cannot be written to: user@fedora:~$ echo "hi" >> /var/log/dnf5.log bash: /var/log/dnf5.log: Read-only file system dnf5 version 5.2.17.0 dnf5 plugin API version 2.0 libdnf5 version 5.2.17.0 libdnf5 plugin API version 2.2
It still does not work for me (dnf5-5.4.0.0-1.20260126013012622778.main.82.g2639ebd6.fc44.x86_64). And a code pertaining this execution path has not changed. Tested with booting a system with "ro init=/bin/bash" kernel parameters.
Thank you for letting me know about "ro init=/bin/bash", Petr, I can reproduce it as well now. Even with a simpler command like "dnf --version"
This should be fixed now in the latest main branch https://github.com/rpm-software-management/dnf5/pull/2590
FEDORA-2026-f38b1b44f9 (dnf5-5.4.0.0-1.fc44) has been submitted as an update to Fedora 44. https://bodhi.fedoraproject.org/updates/FEDORA-2026-f38b1b44f9