|
root / services / hammerhead / root-fs.toml
root-fs.toml TOML 29 lines 879 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# root-fs — Ensure root filesystem is mounted read-write
#
# Tier 0: no dependencies. First oneshot to run.
#
# On illumos with ZFS root, the kernel mounts the root dataset read-write
# at boot via the bootloader; there is no remount step like UFS-era systems.
# This service defensively asserts readonly=off on the active root dataset
# so any prior bootloader/admin override is corrected before later tiers
# write to /.
#
# Reverses at shutdown: stop.sh sets readonly=on as a defensive measure
# before halt/poweroff/reboot so the next boot starts from a clean state.

[service]
name = "root-fs"
description = "Ensure root filesystem is writable (ZFS root)"
type = "oneshot"

[exec]
start = "/etc/zyginit/root-fs/start.sh"
stop = "/etc/zyginit/root-fs/stop.sh"

[runlevel]
# Essential — required in both single-user and multi-user.
mode = "always"

[restart]
on = "never"