Skip to content

Commit

Permalink
Hide some output
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstaro committed Mar 2, 2025
1 parent f96b426 commit 105fb2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,14 @@ pub async fn connect_ssh_for_warmup(

// First we'll wait until the system has fully booted up
let is_running_exitcode = ssh
.call(vec![], "systemctl is-system-running --wait")
.call(vec![], "systemctl is-system-running --wait --quiet")
.await?;
debug!("systemctl is-system-running --wait exit code {is_running_exitcode}");

// TODO: Here we'll add a stupid hack to deal with
// https://github.com/linux-pam/linux-pam/issues/885 for the time being.
ssh.call(vec![], "echo 127.0.0.1 unknown >> /etc/hosts")
.await?;
ssh.call(vec![], "cat /etc/hosts").await?;

// Then shut the system down
ssh.call(vec![], "systemctl poweroff").await?;
Expand Down

0 comments on commit 105fb2a

Please sign in to comment.