diff --git a/src/app/rpmostree-builtin-upgrade.c b/src/app/rpmostree-builtin-upgrade.c index 75d1ec21..df5a23fc 100644 --- a/src/app/rpmostree-builtin-upgrade.c +++ b/src/app/rpmostree-builtin-upgrade.c @@ -88,6 +88,13 @@ rpmostree_builtin_upgrade (int argc, error)) goto out; + if (opt_check_diff && opt_reboot) + { + g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, + "cannot specify both --reboot and --check-diff"); + goto out; + } + if (!rpmostree_load_os_proxy (sysroot_proxy, opt_osname, cancellable, &os_proxy, error)) goto out;