-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
system-upgrade: Handle _execute errors
- Loading branch information
1 parent
4e829bd
commit 589a4e6
Showing
4 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
dnf5/config/systemd/system/dnf5-offline-transaction-cleanup.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=Offline upgrade/transaction using DNF 5 failed | ||
DefaultDependencies=no | ||
|
||
[Service] | ||
Type=oneshot | ||
# Remove the symlink if it's still there, to protect against reboot loops. | ||
ExecStart=/usr/bin/rm -fv /system-update | ||
# If anything goes wrong, reboot back to the normal system. | ||
ExecStart=/usr/bin/systemctl --no-block reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters