Files
shturman/systemd/shturman-machineid.service
T
kk0t9 6e8fe0796b fix(review): systemd target тянет critical set (#1) + harden machine-id bind + deny slint-note
- БЛОКЕР: shturman.target Wants= сервисов (enable target не каскадит) — иначе start поднимал только /data.
- machine-id bind: создаём /etc/machine-id, если нет, перед mount --bind.
- deny.toml: заметка о хрупкости slint-exceptions к апгрейдам.

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

17 lines
709 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.target