aboutsummaryrefslogtreecommitdiffstats
path: root/src/repo/s6-rc-set-copy.c
Commit message (Collapse)AuthorAgeFilesLines
* First part of the format-upgrade support in repoLaurent Bercot2026-10-021-58/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to work across major bumps, we need to add a call to s6-rc-format-upgrade before s6-rc-update in the s6-rc-set-install sequence of commands. s6-rc-format-upgrade only works when the db is exactly the same across s6-rc versions. That means we need to have the source version of the current live set at all times, in order to compile it with the new s6-rc version before upgrading and then updating. So: 1. we take a snapshot of the source version of a set every time we commit. 2. we refuse to install if we don't have the snapshot. 3. we add s6-rc-format-upgrade to the processing chain 4. for cleanup: after installing, we delete all the snapshots of the set except the one that corresponds to the newly installed live set. This commit implements 1: taking the snapshot. It's a regular s6-rc-set-copy, using an internal name. We refactor s6-rc-set-copy and s6-rc-set-delete to have primitives we can use internally. Wait for later commits before using repo, else you'll fill your repository with snapshots that won't get cleaned up. TBD: how to store the s6-rc version in the compiled db. We probably need to add a small file in there.
* Fix s6-rc-set-copyLaurent Bercot2026-01-211-16/+10
|
* Add s6-rc-set-fixLaurent Bercot2025-12-201-0/+2
|
* Next batch of fixesLaurent Bercot2025-12-091-3/+2
|
* Some bugfixesLaurent Bercot2025-12-081-0/+2
|
* Finish repo documentation; make bootdb configurable; fix installLaurent Bercot2025-10-301-1/+1
|
* add getserviceflags and use it in fillset; add some docLaurent Bercot2025-10-211-1/+1
|
* Add stores, edit init and syncLaurent Bercot2025-10-011-2/+0
|
* Add s6-rc-set-commit, slightly rephrase other binariesLaurent Bercot2025-09-211-14/+13
|
* First fixesLaurent Bercot2025-08-041-1/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* first draft of s6rc_repo_set_compileLaurent Bercot2025-08-041-18/+62
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add set-copy, set-deleteLaurent Bercot2025-07-041-0/+87
Signed-off-by: Laurent Bercot <ska@appnovation.com>