another import cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2021-09-01 14:37:11 +02:00
parent 42dad3abd3
commit 4c1b776168
20 changed files with 42 additions and 41 deletions

View File

@ -356,7 +356,7 @@ pub fn create_zpool(
worker.log(format!("# {:?}", command));
let output = crate::tools::run_command(command, None)?;
let output = pbs_tools::run_command(command, None)?;
worker.log(output);
if std::path::Path::new("/lib/systemd/system/zfs-import@.service").exists() {
@ -368,7 +368,7 @@ pub fn create_zpool(
let mut command = std::process::Command::new("zfs");
command.args(&["set", &format!("compression={}", compression), &name]);
worker.log(format!("# {:?}", command));
let output = crate::tools::run_command(command, None)?;
let output = pbs_tools::run_command(command, None)?;
worker.log(output);
}