summaryrefslogtreecommitdiff
path: root/src/ostree/ot-admin-builtin-finalize-staged.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2022-01-12 12:47:11 -0500
committerColin Walters <walters@verbum.org>2022-01-12 12:47:11 -0500
commit0ff4bee74348e6894795ba3a5ac2bfab8aab7f28 (patch)
treedb97b6cac9e4deebbbd7ce01d31d6ef20360d037 /src/ostree/ot-admin-builtin-finalize-staged.c
parent998154f8ffc2f471bf4f3b59602332ba15ef6d07 (diff)
downloadostree-0ff4bee74348e6894795ba3a5ac2bfab8aab7f28.tar.gz
sysroot: Add a public `#define OSTREE_PATH_BOOTED`
This is public API. Motivated by https://github.com/coreos/rpm-ostree/pull/3325/files#diff-56528694f6f3213d6fb88d872f77291412dceec263b57166519843b13eca9a4dR30
Diffstat (limited to 'src/ostree/ot-admin-builtin-finalize-staged.c')
-rw-r--r--src/ostree/ot-admin-builtin-finalize-staged.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-admin-builtin-finalize-staged.c b/src/ostree/ot-admin-builtin-finalize-staged.c
index 80d8a9b7..17b6a625 100644
--- a/src/ostree/ot-admin-builtin-finalize-staged.c
+++ b/src/ostree/ot-admin-builtin-finalize-staged.c
@@ -45,7 +45,7 @@ ot_admin_builtin_finalize_staged (int argc, char **argv, OstreeCommandInvocation
/* Just a sanity check; we shouldn't be called outside of the service though.
*/
struct stat stbuf;
- if (fstatat (AT_FDCWD, "/run/ostree-booted", &stbuf, 0) < 0)
+ if (fstatat (AT_FDCWD, OSTREE_PATH_BOOTED, &stbuf, 0) < 0)
return TRUE;
g_autoptr(GOptionContext) context = g_option_context_new ("");