From 0f8dd0344d97a98ca7c9176b8cfd2215115e8fee Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Fri, 5 Mar 2021 14:27:31 -0500 Subject: [PATCH] app/override: Hint at `rpm-ostree override reset` It's always nice when apps provide useful hints about other commands you may be interested in. For instance, if they've done `rpm-ostree override replace/remove`, let's be helpful and tell users that they can use `rpm-ostree override reset` to unpin packages. --- src/app/rpmostree-override-builtins.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/rpmostree-override-builtins.cxx b/src/app/rpmostree-override-builtins.cxx index 31df8371..cb9c154b 100644 --- a/src/app/rpmostree-override-builtins.cxx +++ b/src/app/rpmostree-override-builtins.cxx @@ -127,6 +127,9 @@ handle_override (RPMOSTreeSysroot *sysroot_proxy, RPMOSTREE_DIFF_PRINT_FORMAT_FULL_MULTILINE, 0, cancellable, error)) return FALSE; + if (override_replace || override_remove) + g_print ("Use \"rpm-ostree override reset\" to undo overrides\n"); + g_print ("Run \"systemctl reboot\" to start a reboot\n"); }