s6 version export prints the scandir for the bootdb key, so it always
claims the boot database lives in /run/service. The value is only used
for reporting, the commands themselves use g->dirs.boot.

Signed-off-by: Alex Kiernan <[email protected]>
---
 src/s6-frontend/version_export.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/s6-frontend/version_export.c b/src/s6-frontend/version_export.c
index 34f0b31335ec..9e9542f8f0bc 100644
--- a/src/s6-frontend/version_export.c
+++ b/src/s6-frontend/version_export.c
@@ -61,7 +61,7 @@ void version_export (char const *const *argv)
   (*f)("scandir", g->dirs.scan, &sa) ;
   (*f)("livedir", g->dirs.live, &sa) ;
   (*f)("repodir", g->dirs.repo, &sa) ;
-  (*f)("bootdb", g->dirs.scan, &sa) ;
+  (*f)("bootdb", g->dirs.boot, &sa) ;
   (*f)("stmpdir", g->dirs.stmp, &sa) ;
   (*f)("storelist", g->dirs.stol, &sa) ;
   (*f)("fdhuser", g->fdhuser ? g->fdhuser : "", &sa) ;

Reply via email to