update to bw 4.11.2
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-08-17 18:09:51 +02:00
parent 649473e4b5
commit 4167d3cb22
Signed by: kunsi
GPG key ID: 12E3D2136B818350
12 changed files with 85 additions and 367 deletions

View file

@ -24,7 +24,7 @@ def zfs_disks_to_metadata(metadata):
disks = set()
for config in metadata.get('zfs/pools', {}).values():
for option in config:
for option in config['when_creating']['config']:
if option.get('type', '') in {'log', 'cache'}:
continue

View file

@ -79,12 +79,10 @@ svc_systemd = {
zfs_datasets = node.metadata.get('zfs/datasets', {})
for name, attrs in node.metadata.get('zfs/pools', {}).items():
zfs_pools[name] = {
'config': attrs,
}
zfs_pools[name] = attrs
if node.os_version[0] > 10:
zfs_pools[name]['autotrim'] = True
zfs_pools[name]['autotrim'] = attrs.get('autotrim', True)
directories = {
"/etc/zfs-snapshot-backup-pre.d": {