Skip to content

Commit

Permalink
Merge pull request #414 from endlessm/T35640-revert-eos-test-mode-ser…
Browse files Browse the repository at this point in the history
…vice-restarts

Revert "eos-test-mode: Remount eos-live overlays in some services' namespace"
  • Loading branch information
dbnicholson authored Sep 9, 2024
2 parents 2797071 + 5d9bc9a commit 500ad39
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions eos-test-mode
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,3 @@ systemctl mask --runtime --now eos-autoupdater.timer eos-autoupdater.service

# Disable phoning home for this boot, too
systemctl mask --runtime --now eos-phone-home.{service,timer,path}

# Restart systemd services which mount real storage blocks to the paths under
# /sysroot/ directly. This helps them remount the eos-live overlays in their
# namespace. This is caused by ostree making the /sysroot mount private.
# https://phabricator.endlessm.com/T35625
pattern='$1 ~ "^/dev/" && $2 ~ "^/sysroot/"'
action='{split(FILENAME, p, "/"); print p[3]; nextfile}'
awk "$pattern $action" /proc/*/mounts | uniq | while read -r pid;
do
service=$(systemctl whoami $pid)
systemctl restart $service
done

0 comments on commit 500ad39

Please sign in to comment.