proxmox-systemd: remove crate, use new proxmox-time 1.1.0 instead
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
@ -187,9 +187,9 @@ pub fn create_datastore_disk(
|
||||
|
||||
let mount_unit_name = create_datastore_mount_unit(&name, &mount_point, filesystem, &uuid_path)?;
|
||||
|
||||
proxmox_systemd::reload_daemon()?;
|
||||
proxmox_systemd::enable_unit(&mount_unit_name)?;
|
||||
proxmox_systemd::start_unit(&mount_unit_name)?;
|
||||
crate::tools::systemd::reload_daemon()?;
|
||||
crate::tools::systemd::enable_unit(&mount_unit_name)?;
|
||||
crate::tools::systemd::start_unit(&mount_unit_name)?;
|
||||
|
||||
if add_datastore {
|
||||
let lock = pbs_config::datastore::lock_config()?;
|
||||
@ -245,7 +245,7 @@ pub fn delete_datastore_disk(name: String) -> Result<(), Error> {
|
||||
// disable systemd mount-unit
|
||||
let mut mount_unit_name = proxmox::tools::systemd::escape_unit(&path, true);
|
||||
mount_unit_name.push_str(".mount");
|
||||
proxmox_systemd::disable_unit(&mount_unit_name)?;
|
||||
crate::tools::systemd::disable_unit(&mount_unit_name)?;
|
||||
|
||||
// delete .mount-file
|
||||
let mount_unit_path = format!("/etc/systemd/system/{}", mount_unit_name);
|
||||
|
@ -270,7 +270,7 @@ pub fn create_zpool(
|
||||
|
||||
if std::path::Path::new("/lib/systemd/system/zfs-import@.service").exists() {
|
||||
let import_unit = format!("zfs-import@{}.service", proxmox::tools::systemd::escape_unit(&name, false));
|
||||
proxmox_systemd::enable_unit(&import_unit)?;
|
||||
crate::tools::systemd::enable_unit(&import_unit)?;
|
||||
}
|
||||
|
||||
if let Some(compression) = compression {
|
||||
|
Reference in New Issue
Block a user