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

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

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(): for name, attrs in node.metadata.get('zfs/pools', {}).items():
zfs_pools[name] = attrs zfs_pools[name] = attrs