bundles/zfs: explicitely set canmount and mountpoint if not specified
kunsi/bundlewrap/pipeline/head This commit looks good Details

This commit is contained in:
Franzi 2021-12-28 16:52:26 +01:00
parent 803e1dc411
commit 0b4f0e142f
Signed by: kunsi
GPG Key ID: 12E3D2136B818350
1 changed files with 7 additions and 1 deletions

View File

@ -76,7 +76,13 @@ svc_systemd = {
},
}
zfs_datasets = node.metadata.get('zfs/datasets', {})
for name, attrs in node.metadata.get('zfs/datasets', {}).items():
zfs_datasets[name] = attrs
if 'mountpoint' not in attrs:
zfs_datasets[name]['canmount'] = 'off'
else:
zfs_datasets[name]['canmount'] = 'on'
for name, attrs in node.metadata.get('zfs/pools', {}).items():
zfs_pools[name] = attrs