Skip to content

v0.4.37

Latest

Choose a tag to compare

@ajax80 ajax80 released this 29 Nov 19:25
· 19 commits to master since this release
748ac6b

512 services, bounding_caps=, stdout/stderr/keyring keys, no silent directives, verify notifications

schema-netinst44-installer-v0.4.37-748ac6b.iso installs Fedora 44 KDE with schema-init as PID 1. It's a netinst, so the machine needs network during install.

Changed since v0.4.36

  • 512 services, less memory (#609): PID 1 now loads up to 512 services (it was 128, and importing every Fedora 44 unit gives 211). The service tables are allocated rather than static, and pages are locked as they're used (MCL_ONFAULT), with the binary's own segments still fully locked. A small box uses less memory than before: 2.6 MB RSS with 12 services, down from 8.2 MB. The shm export moves to layout 4, so a schema-board started before the upgrade may show garbage rows until you restart it.
  • bounding_caps= (#610): new key (list, ~list or empty) for the capability bounding set. schema-import maps CapabilityBoundingSet= onto it, and all 92 corpus units that use it are now enforced.
  • More mappings (#611): OOMScoreAdjust= maps to oom_score_adj=. TimeoutStartSec= maps to start_timeout_sec= (notify/oneshot, and dbus/forking where it's longer than their healthy promotion). StartLimitBurst= maps to max_restarts=; the time window isn't kept, and the importer warns about that.
  • No silent directives (#612): every directive in the Fedora, Debian, Ubuntu and Arch corpus is now mapped, warned or known to be inert. PermissionsStartOnly=yes runs ExecStartPre= as root.
  • stdout=, stderr=, keyring_mode=, ignore_sigpipe= (#613): new engine keys. stdout=/stderr= take log, null, file:, append: or truncate:, and stderr= can also be inherit. keyring_mode= takes private or shared. They're mapped from StandardOutput=, StandardError=, KeyringMode= and IgnoreSIGPIPE=, and written only when they differ from the default, so the verify baseline doesn't churn.
  • Verify notifications (#614): schema-ctl verify writes /run/schema-init/verify-status, and a new schema-doctor-verify watch turns a FAIL into a schema-doctor popup. Unaccepted changes show amber, with no popup. The desktop Restart is deliberately not gated, so it stays instant.

Existing installs: sudo dnf upgrade on Fedora, sudo apt upgrade on the Pi. PID 1 switches over live, through verify.

Tested:

  • This ISO, built from the tag, installed in a fresh VM. Both wizard switches went to All Set, and the desktop came up with its tray, clock and show-desktop.
  • Raspberry Pi 3 Model B (Pi-hole, 35 services): the v0.4.37 arm64 deb from the tag build installed with apt. The live re-exec adopted all 35 with no restarts and verify reported 0/0/0. A real reboot then came back on 0.4.37 with DNS and blocking working.

Known:

  • A panel cut short after its tray but before the tray's contents (an empty tray with the clock present) isn't healed automatically. Delete ~/.config/plasma-org.kde.plasma.desktop-appletsrc and log in again.
  • schema-import still only warns, without enforcing, for ExecCondition= and ExecStartPost=. A type-wide service.d/ drop-in isn't read. Wants= is ignored. OnFailure= is warned: there's no standby state to run its targets from.
  • RestrictAddressFamilies=, IPAddressDeny= and ReadOnlyPaths= have no equivalent yet; the importer lists them in each unit's warnings.
  • verify: a grub.cfg set name=$other (a non-literal value) is still skipped, so grubenv's value for that name is used.
  • In a VM given an AMD host CPU, mcelog shows excised; it refuses AMD processors.

Safety net: the stock systemd boot entries stay in the GRUB menu, so if a schema-init boot fails you can always pick the systemd entry. Both switches roll themselves back if they don't come up healthy.

EXPERIMENTAL — test on a machine you can reinstall.