hooks: test zfs metadata consistency

This commit is contained in:
Franzi 2021-12-29 13:23:07 +01:00
parent 0b4f0e142f
commit 390f18a3a4
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 55 additions and 1 deletions

View file

@ -81,6 +81,8 @@ for name, attrs in node.metadata.get('zfs/datasets', {}).items():
if 'mountpoint' not in attrs:
zfs_datasets[name]['canmount'] = 'off'
# https://github.com/bundlewrap/bundlewrap/commit/76647590d684446f146cedb89518458f18dd229e
# zfs_datasets[name]['mountpoint'] = 'none'
else:
zfs_datasets[name]['canmount'] = 'on'