Skip to content

Commit a6f58d5

Browse files
committed
reboot: Quiet the output from systemd-run
The fact that we have a transient unit here is just implementation detail, no need to tell the user the name of the unit.
1 parent f4b01ab commit a6f58d5

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)