Skip to content

Commit

Permalink
update ioc_start.py - handle /dev/log symlink creation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Sep 27, 2024
1 parent 7e3d28d commit 97cc3fd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion iocage_lib/ioc_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,15 @@ def __start_jail__(self):
os_path = f"{self.path}/root/dev/log"

if not os.path.isfile(os_path) and not os.path.islink(os_path):
os.symlink("../var/run/log", os_path)
try:
os.symlink("../var/run/log", os_path)
except:
iocage_lib.ioc_common.logit({
"level": "WARNING",
"message": " + Could not set up /dev/log"
},
_callback=self.callback,
silent=self.silent)

vnet_err = self.start_network(vnet, nat)

Expand Down

0 comments on commit 97cc3fd

Please sign in to comment.