Skip to content

Commit

Permalink
update ioc_check.py - auto mount is enough
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Sep 26, 2024
1 parent f3bbfbb commit dd50e4c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions iocage_lib/ioc_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,11 @@ def __check_datasets__(self):
ds = Dataset(zfs_dataset_name, cache=self.reset_cache)
if not ds.exists:
ds.create({'properties': dataset_options})
print('mountpoint:', ds.properties.get('mountpoint'))
if (
ds.properties.get('mountpoint') == 'none'
and ds.name.endswith('iocage')
):
ds.set_property('mountpoint', '/iocage')
ds.mount()

prop = ds.properties.get("exec")
if prop != "on":
Expand Down

0 comments on commit dd50e4c

Please sign in to comment.