@@ -43,6 +43,7 @@ static gboolean opt_download_only;
43
43
static char * opt_automatic ;
44
44
static gboolean opt_lock_finalization ;
45
45
static gboolean opt_bypass_driver ;
46
+ static gboolean opt_ex_reset_overrides ;
46
47
47
48
/* "check-diff" is deprecated, replaced by "preview" */
48
49
static GOptionEntry option_entries [] = {
@@ -60,6 +61,7 @@ static GOptionEntry option_entries[] = {
60
61
{ "trigger-automatic-update-policy" , 0 , G_OPTION_FLAG_HIDDEN , G_OPTION_ARG_NONE , & opt_automatic , "For automated use only; triggered by automatic timer" , NULL },
61
62
{ "lock-finalization" , 0 , G_OPTION_FLAG_HIDDEN , G_OPTION_ARG_NONE , & opt_lock_finalization , "Prevent automatic deployment finalization on shutdown" , NULL },
62
63
{ "bypass-driver" , 0 , 0 , G_OPTION_ARG_NONE , & opt_bypass_driver , "Force an upgrade even if an updates driver is registered" , NULL },
64
+ { "ex-reset-overrides" , 0 , G_OPTION_FLAG_HIDDEN , G_OPTION_ARG_NONE , & opt_ex_reset_overrides , "Reset overrides before upgrade" , NULL },
63
65
{ NULL }
64
66
};
65
67
@@ -174,6 +176,7 @@ rpmostree_builtin_upgrade (int argc,
174
176
g_variant_dict_insert (& dict , "download-only" , "b" , opt_download_only );
175
177
g_variant_dict_insert (& dict , "lock-finalization" , "b" , opt_lock_finalization );
176
178
g_variant_dict_insert (& dict , "initiating-command-line" , "s" , invocation -> command_line );
179
+ g_variant_dict_insert (& dict , "ex-reset-overrides" , "b" , opt_ex_reset_overrides );
177
180
g_autoptr (GVariant ) options = g_variant_ref_sink (g_variant_dict_end (& dict ));
178
181
179
182
/* Use newer D-Bus API only if we have to. */
0 commit comments