Files
shturman/systemd/shturman-machineid.service
kk0t9 86ab11a54b feat(v0.2): фазовые systemd-таргеты Stage 0/1/2 + splash/warmup + зонтик
P6.3: shturman.target → зонтик (Wants stage0/1/2). Новые: stage0/1/2.target,
shturman-splash.service (Before=shell, минимум зависимостей → «мгновенно»),
shturman-stage2-warmup.service (After=shell, маркер /run/shturman/stage2.ready),
tmpfiles-shturman.conf (/run/shturman). Члены critical set → stage1.target
(WantedBy+PartOf); у shell убран RuntimeDirectory (каталог теперь от tmpfiles).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Alexander <akotenev2003@gmail.com>
2026-06-24 20:08:10 +03:00

17 lines
716 B
Desktop File

# Every-boot привязка persistent machine-id из /data → /etc/machine-id (a-base §11):
# генерация — one-shot в firstboot; bind волатилен и нужен на КАЖДЫЙ boot, до dbus.
[Unit]
Description=Штурман bind persistent machine-id (/data → /etc/machine-id)
Requires=data.mount
After=data.mount shturman-firstboot.service
Before=dbus.service shturman-settings.service shturman-power.service shturman-shell.service
ConditionPathExists=/data/state/machine-id
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -c '[ -e /etc/machine-id ] || : > /etc/machine-id; mount --bind /data/state/machine-id /etc/machine-id'
[Install]
WantedBy=shturman-stage1.target