diff options
author | Colin Walters <walters@verbum.org> | 2022-01-12 12:47:11 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2022-01-12 12:47:11 -0500 |
commit | 0ff4bee74348e6894795ba3a5ac2bfab8aab7f28 (patch) | |
tree | db97b6cac9e4deebbbd7ce01d31d6ef20360d037 /src/ostree/ot-main.c | |
parent | 998154f8ffc2f471bf4f3b59602332ba15ef6d07 (diff) | |
download | ostree-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-main.c')
-rw-r--r-- | src/ostree/ot-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |