Open m-blaha opened 2 months ago
Do you propose "dnf offline status" to:
I asks because wording of the message should match it.
Well, it should somehow make it clear, that there are two offline transaction statuses:
/system-update
magic symlink, meaning that there is a pending offline upgrade waiting for the reboot to be triggered (not necessarily initiated by dnf5) Both these statuses should be covered.
Currently, the
dnf offline status
command checks only the status file stored in/usr/lib/sysimage/libdnf5/offline/offline-transaction-state.toml
.This approach can cause confusion because the output doesn't clearly convey that the
An offline transaction was initiated...
message actually only means that there is a transaction prepared by dnf5 in /usr/lib/sysimage/libdnf5/offline/. It does not indicate whether the transaction will be performed during the next reboot or not. Moreover, there might be an offline upgrade scheduled for the next reboot by another tool, but the output does not report this.See also https://github.com/rpm-software-management/dnf5/issues/1584