Skip to content

Commit

Permalink
Sync contrib service with static systemd args
Browse files Browse the repository at this point in the history
And add comments in both places so we remember
to keep them in sync.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Jan 8, 2025
1 parent 9c56839 commit e35436c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/packaging/bootloader-update.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ Documentation=https://github.com/coreos/bootupd
Type=oneshot
ExecStart=/usr/bin/bootupctl update
RemainAfterExit=yes
# Keep this stuff in sync with SYSTEMD_ARGS_BOOTUPD in general
ProtectHome=yes
MountFlags=slave
KillMode=mixed

[Install]
WantedBy=multi-user.target
1 change: 1 addition & 0 deletions src/cli/bootupctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ static SYSTEMD_ARGS_BOOTUPD: &[&str] = &[
"bootupd",
"--property",
"PrivateNetwork=yes",
// Keep this stuff in sync with bootloader-update.service
"--property",
"ProtectHome=yes",
// While only our main process during update catches SIGTERM, we don't
Expand Down

0 comments on commit e35436c

Please sign in to comment.