fix: restore updater lock ownership and current orchestrator model
This commit is contained in:
@@ -128,6 +128,9 @@ in
|
||||
state() { printf '%s result=%s generation=%s note=%s\n' "$(date -u +%FT%TZ)" "$1" "$2" "$3" > ${stateFile}; chown ${cfg.buildUser} ${stateFile} || true; }
|
||||
PREV=$(readlink -f /run/current-system)
|
||||
LOCK_BAK=${cfg.flakePath}/.flake.lock.auto-update-prev
|
||||
# A manual root-side flake operation can leave the lock root-owned. The
|
||||
# updater runs nix as buildUser, so restore its write access first.
|
||||
chown ${cfg.buildUser} flake.lock
|
||||
|
||||
if ! ${busyGate}; then
|
||||
state skipped "$PREV" busy
|
||||
|
||||
Reference in New Issue
Block a user