Skip to content

Commit bd6b372

Browse files
committed
lib/src/reboot: use valid systemd-run arguments
Signed-off-by: Robert Sturla <[email protected]>
1 parent b290ad2 commit bd6b372

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)