summaryrefslogtreecommitdiff
path: root/src/ostree
diff options
context:
space:
mode:
Diffstat (limited to 'src/ostree')
-rw-r--r--src/ostree/ot-admin-builtin-finalize-staged.c2
-rw-r--r--src/ostree/ot-main.c2
2 files changed, 2 insertions, 2 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 ("");
diff --git a/src/ostree/ot-main.c b/src/ostree/ot-main.c
index 7a4c4707..b7b50d67 100644
--- a/src/ostree/ot-main.c
+++ b/src/ostree/ot-main.c
@@ -120,7 +120,7 @@ maybe_setup_mount_namespace (gboolean *out_ns,
return TRUE;
/* If the system isn't booted via libostree, also nothing to do */
- if (!glnx_fstatat_allow_noent (AT_FDCWD, "/run/ostree-booted", NULL, 0, error))
+ if (!glnx_fstatat_allow_noent (AT_FDCWD, OSTREE_PATH_BOOTED, NULL, 0, error))
return FALSE;
if (errno == ENOENT)
return TRUE;