Skip to content

Commit

Permalink
update ioc_check.py - set mountpoint if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Sep 26, 2024
1 parent e7f4638 commit 8fa1a19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iocage_lib/ioc_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ 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') is 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 8fa1a19

Please sign in to comment.