zfs does not have to be installed, so simply log an error and
continue, users still get an error when clicking directly on
ZFS
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
let partition_type_map = get_partition_type_info()?;
- let zfs_devices = zfs_devices(&partition_type_map, None)?;
+ let zfs_devices = zfs_devices(&partition_type_map, None).or_else(|err| -> Result<HashSet<u64>, Error> {
+ eprintln!("error getting zfs devices: {}", err);
+ Ok(HashSet::new())
+ })?;
let lvm_devices = get_lvm_devices(&partition_type_map)?;