mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 18:02:00 -04:00
systemd: Fix arguments to MaskUnitFiles
This commit is contained in:
parent
e38ac57891
commit
b674f694af
1 changed files with 2 additions and 1 deletions
|
@ -50,6 +50,7 @@ trait SystemdManager {
|
||||||
&self,
|
&self,
|
||||||
files: &[&str],
|
files: &[&str],
|
||||||
runtime: bool,
|
runtime: bool,
|
||||||
|
force: bool,
|
||||||
) -> Result<Vec<(String, String, String)>>;
|
) -> Result<Vec<(String, String, String)>>;
|
||||||
|
|
||||||
async fn unmask_unit_files(
|
async fn unmask_unit_files(
|
||||||
|
@ -130,7 +131,7 @@ impl<'dbus> SystemdUnit<'dbus> {
|
||||||
pub async fn mask(&self) -> Result<bool> {
|
pub async fn mask(&self) -> Result<bool> {
|
||||||
let manager = SystemdManagerProxy::new(&self.connection).await?;
|
let manager = SystemdManagerProxy::new(&self.connection).await?;
|
||||||
let res = manager
|
let res = manager
|
||||||
.mask_unit_files(&[self.name.as_str()], false)
|
.mask_unit_files(&[self.name.as_str()], false, false)
|
||||||
.await?;
|
.await?;
|
||||||
Ok(!res.is_empty())
|
Ok(!res.is_empty())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue