From db3fb428599c9c8fe105dcf4ba8d1c914c54cc26 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 15 Oct 2026 08:19:48 +0000 Subject: More work on format-upgrade inclusion: real meta-information storage If a db format upgrade is necessary, we need to compile the snapshot with the new s6-rc-compile. There's data we need to pass to it that isn't stored (options passed when committing the original set), so we store it in the db itself (patching s6-rc-compile). We modify the s6-rc-compile wrappers to pass all this metadata. Next, we will compile the snapshot. --- doc/s6-rc-compile.html | 6 +++++- src/include/s6-rc/repo.h | 1 + src/repo/deps-lib/s6rcrepo | 1 + src/repo/s6rc_repo_compile.c | 14 ++++++++++---- src/repo/s6rc_repo_read_major.c | 15 ++++++--------- src/repo/s6rc_repo_setcompile.c | 2 +- src/s6-rc/s6-rc-compile.c | 41 ++++++++++++++++++++++++++--------------- 7 files changed, 50 insertions(+), 30 deletions(-) diff --git a/doc/s6-rc-compile.html b/doc/s6-rc-compile.html index 09e71d6..0d9f712 100644 --- a/doc/s6-rc-compile.html +++ b/doc/s6-rc-compile.html @@ -37,7 +37,7 @@ the current service database via

Interface

-     s6-rc-compile [ -v verbosity ] [ -h fdhuser ] [ -L catchall ] [ -b ] compiled source...
+     s6-rc-compile [ -v verbosity ] [ -h fdhuser ] [ -L catchall ] [ -D defbundle ] [ -b ] compiled source...