Skip to content

Commit b173486

Browse files
authored
Merge pull request #1450 from cgwalters/quiet-spawn
reboot: Quiet the output from systemd-run
2 parents ee1bc61 + a6f58d5 commit b173486

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

crates/lib/src/reboot.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ 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(["--", "systemctl", "reboot", "--message=Initiated by bootc"])
17+
.args([
18+
"--quiet",
19+
"--",
20+
"systemctl",
21+
"reboot",
22+
"--message=Initiated by bootc",
23+
])
1824
.run()?;
1925
tracing::debug!("Initiated reboot, sleeping forever...");
2026
loop {

0 commit comments

Comments
 (0)