diff options
author | Colin Walters <walters@verbum.org> | 2015-05-13 16:48:09 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-05-13 17:23:07 -0400 |
commit | c10bc00249b444cd3f326af967208cc76ebb58ef (patch) | |
tree | bb1026cee5745e5eda6a301f0f267476ff8d6fc7 /src/ostree/ot-admin-builtin-os-init.c | |
parent | 06818ceddc5c04f67d07f0bcefda17c5c705a709 (diff) | |
download | ostree-c10bc00249b444cd3f326af967208cc76ebb58ef.tar.gz |
admin: Use locking for most sysroot commands
The previous commit introduced locking for `ostree admin deploy`, but
we do expect people to possibly accidentally do e.g.
`ostree admin upgrade` concurrently.
Using consistent locking in the admin commands will help rpm-ostree.
Closes: https://github.com/GNOME/ostree/pull/110
Diffstat (limited to 'src/ostree/ot-admin-builtin-os-init.c')
-rw-r--r-- | src/ostree/ot-admin-builtin-os-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-admin-builtin-os-init.c b/src/ostree/ot-admin-builtin-os-init.c index 52e3d9a5..f5b5f64b 100644 --- a/src/ostree/ot-admin-builtin-os-init.c +++ b/src/ostree/ot-admin-builtin-os-init.c @@ -46,7 +46,7 @@ ot_admin_builtin_os_init (int argc, char **argv, GCancellable *cancellable, GErr context = g_option_context_new ("OSNAME - Initialize empty state for given operating system"); if (!ostree_admin_option_context_parse (context, options, &argc, &argv, - OSTREE_ADMIN_BUILTIN_FLAG_SUPERUSER, + OSTREE_ADMIN_BUILTIN_FLAG_SUPERUSER | OSTREE_ADMIN_BUILTIN_FLAG_UNLOCKED, &sysroot, cancellable, error)) goto out; |