aboutsummaryrefslogtreecommitdiffstats
path: root/src/repo/s6rc_repo_setuptodate.c
Commit message (Collapse)AuthorAgeFilesLines
* Third part of the format-upgrade inclusion: add support in s6-rc-set-installLaurent Bercot32 hours1-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Now that everything is in place, we go for the main thing: add snapshot support to s6-rc-set install. The workflow is: - check the major version of the old db against the current s6-rc - if the old db is up to date, nothing changes - otherwise: + find the snapshot corresponding to the old db + compile it + copy the snapshot db to the bootdir + call s6-rc-format-upgrade on it + atomically switch the bootdb to it. At this point the snapshot is the new bootdb: same as the old db, but with the correct major version. + unconditionally remove the old db + and now we can perform the regular s6-rc-update with the wanted set, since they have the same major. We also add --no-snapshot options to s6-rc-set-commit and s6-rc-set-install, and propagate them in the supporting functions, so users can manually skip all this bloat (and this is important for the initial install). All that remains is cleaning up obsolete snapshots. This will probably go at the end of s6-rc-set-install as well.
* Second part of the format-upgrade support: ensure snapshots are thereLaurent Bercot3 days1-0/+34
| | | | | | | We don't want to install compiled dbs without having a snapshot of their source set, so whenever we test that the compiled db is up to date, we also test that a snapshot is present. This is important because we will auto-cleanup unused snapshots after installation.
* But this day is not today, so screw it. We gotta keep em separatedLaurent Bercot9 days1-1/+1
|
* Propagate -L catchall changes to s6-rc-set-commitLaurent Bercot13 days1-2/+14
| | | | | s6-rc-set-install is undergoing changes, it might not work properly. The rest is coming this week.
* nonposix.h PLUS bsdsnowflake.h are necessary for st.mtimLaurent Bercot2025-10-231-4/+4
|
* Separate libs6rcrepoLaurent Bercot2025-10-221-0/+44