mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-11 20:58:45 +03:00
admin/state-overlay: Require root and don't lock sysroot
Not required for anything in particular, but it's good to use the right flags here anyway.
This commit is contained in:
parent
740413168f
commit
31b804f20d
@ -243,8 +243,9 @@ ot_admin_builtin_state_overlay (int argc, char **argv, OstreeCommandInvocation *
|
||||
/* First parse the args without loading the sysroot to see what options are
|
||||
* set. */
|
||||
if (!ostree_admin_option_context_parse (context, options, &argc, &argv,
|
||||
OSTREE_ADMIN_BUILTIN_FLAG_NONE, invocation, &sysroot,
|
||||
cancellable, error))
|
||||
OSTREE_ADMIN_BUILTIN_FLAG_SUPERUSER
|
||||
| OSTREE_ADMIN_BUILTIN_FLAG_UNLOCKED,
|
||||
invocation, &sysroot, cancellable, error))
|
||||
return FALSE;
|
||||
|
||||
if (argc < 3)
|
||||
|
Loading…
x
Reference in New Issue
Block a user