Skip to content

Commit 97e5ca2

Browse files
authored
Merge pull request #1417 from rsturla/systemd-run-message
lib/src/reboot: use valid systemd-run arguments
2 parents b290ad2 + bd6b372 commit 97e5ca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/reboot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub(crate) fn reboot() -> anyhow::Result<()> {
1414
let _ = std::io::stdout().flush();
1515
let _ = std::io::stderr().flush();
1616
Task::new("Rebooting system", "systemd-run")
17-
.args(["--message=Initiated by bootc", "reboot"])
17+
.args(["--", "systemctl", "reboot", "--message=Initiated by bootc"])
1818
.run()?;
1919
tracing::debug!("Initiated reboot, sleeping forever...");
2020
loop {

0 commit comments

Comments
 (0)