Skip to content

Commit

Permalink
system-upgrade: Add warning to dnf5 offline _execute
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-goode committed Feb 29, 2024
1 parent a7ab916 commit 9227d75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dnf5/commands/offline/offline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ void OfflineExecuteCommand::run() {

log_status("Starting offline transaction. This will take a while.", libdnf5::offline::OFFLINE_STARTED_ID);

std::cout << "Warning: the `_execute` command is for internal use only and is not intended to be run directly by "
"the user. To initiate the system upgrade/offline transaction, you should run `dnf5 offline reboot`."
<< std::endl;

if (!std::filesystem::is_symlink(get_magic_symlink())) {
throw libdnf5::cli::CommandExitError(0, M_("Trigger file does not exist. Exiting."));
}
Expand Down

0 comments on commit 9227d75

Please sign in to comment.