The second beta, safer through a power cut and with more services confined
J1-7.3.1-0.4.0-beta2 keeps the boot menu intact when the power goes at the wrong moment, holds nine more servers to the operations they declare, makes the installer recover from its own failures, and lets programs ask dave about the system in JSON.
J1-7.3.1-0.4.0-beta2 is the second beta. The kernel is still 7.3.1 and dave is still 0.4.0. An installed system gets everything below with sudo dave upgrade and a restart.
The boot menu survives a power cut
When dave installed or removed a package on a running system, it replaced the boot entry for the saved system on the EFI system partition. The partition is FAT, which writes lazily, and the old entry was removed before the new one was safely on the disk. A power cut in that moment could leave the machine with no boot entry at all. dave now writes and flushes the new entry before the old one goes, and flushes again after every rename and removal. The tests cut the power immediately after a live install and after a live removal, and the machine starts each time.
More services on their own terms
The first beta held the desktop’s privileged services to the operations they declare. This one does the same for the servers in the repository: PostgreSQL, Valkey, nftables, chrony, OpenVPN, unbound, BIND, dnsmasq, HAProxy, nginx and the rsync daemon, as well as man-db and the boot helpers that systemd runs once (tmpfiles, sysusers, repart and growfs). Each was checked with the security module logging and then enforcing, and nothing it does was refused. What is declared today lists them.
An installer that recovers
If a program the installer needs is missing or fails to start, the installer now says what happened and offers to try again, instead of waiting for something that will never answer. It cannot be closed in the middle of an installation. It reads the disk sizes it needs from dave instead of repeating them, so the two cannot disagree.
dave answers programs
dave list, info, search, status and deployments, and install, remove and upgrade with --dry-run, now answer in JSON when given --json, one document a program can read. A dry run names the change it describes, and --expect makes dave refuse to make any other: a program can show a person exactly what will happen and do exactly that. dave status --json says whether an upgrade is waiting for the restart, and how the last one went, including when the machine went back to the system before it by itself. The manual describes every document.
Only root can fetch the repositories’ package lists, so until now a search without root used whatever list root had fetched last. dave now fetches them itself a quarter of an hour after the machine starts and twice a day after that, and a machine that cannot reach its repositories simply tries again later. dave’s hints for commands that need root now say doas, which answers to sudo as well.
Smaller changes
- Every source archive is now fetched over HTTPS.
- On the desktop, a service that needs the network waits until NetworkManager has brought it up.
dave repo auditchecks only the newest release of each package, leaves shared libraries out, and can compare its findings with an earlier run.- When dave’s messages and a program’s are written to the same file, they no longer overwrite each other.