diff --git a/backend/src/hostname.rs b/backend/src/hostname.rs index d2004a338..91e4ea71f 100644 --- a/backend/src/hostname.rs +++ b/backend/src/hostname.rs @@ -56,7 +56,8 @@ pub async fn get_current_hostname() -> Result { #[instrument(skip_all)] pub async fn set_hostname(hostname: &Hostname) -> Result<(), Error> { let hostname: &String = &hostname.0; - let _out = Command::new("hostnamectl") + Command::new("hostnamectl") + .arg("--static") .arg("set-hostname") .arg(hostname) .invoke(ErrorKind::ParseSysInfo)