Skip to content

fix: supervise shutdown stops services only - #7

Merged
keskad merged 1 commit into
mainfrom
fix/supervise-skip-unmount
Aug 5, 2026
Merged

fix: supervise shutdown stops services only#7
keskad merged 1 commit into
mainfrom
fix/supervise-skip-unmount

Conversation

@keskad

@keskad keskad commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • microinit supervise shutdown now only stops services, syncs, and exits — no late-unmount script and no reboot(2) / poweroff / halt.
  • Full init mode is unchanged (unmount + machine shutdown).
  • Docs and man pages updated; InitOpts.machine_shutdown + supervise_opts() gate the behavior.

Test plan

  • cargo test --locked --test init_opts_test
  • cargo test --locked --no-default-features --test init_opts_test
  • cargo check --locked --no-default-features
  • CI green on PR
  • On a hub (or container): start microinit supervise, confirm /data stays mounted after IPC shutdown / Go Host.Shutdown()

Made with Cursor

Skip late-unmount and reboot/poweroff/halt in supervise mode so an
embedded Host.Shutdown cannot umount /data on a live hub. Init mode is
unchanged.

Co-authored-by: Cursor <[email protected]>
@keskad
keskad force-pushed the fix/supervise-skip-unmount branch from 9f712be to 3ab10bc Compare August 5, 2026 08:11
@keskad
keskad merged commit e96ec68 into main Aug 5, 2026
9 checks passed
@keskad
keskad deleted the fix/supervise-skip-unmount branch August 5, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant