bundles/zfs: explicitely set canmount and mountpoint if not specified
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
803e1dc411
commit
0b4f0e142f
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue