assemble: add new unshare options from create

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
Luca Di Maio
2023-09-12 18:45:09 +02:00
parent 79956c499a
commit 0d96b03095
2 changed files with 15 additions and 0 deletions
+12
View File
@@ -47,6 +47,9 @@ root=""
start_now=""
unshare_ipc=""
unshare_netns=""
unshare_process=""
unshare_devsys=""
unshare_all=""
volume=""
exported_apps=""
exported_bins=""
@@ -269,6 +272,15 @@ run_distrobox() (
if [ -n "${unshare_ipc}" ] && [ "${unshare_ipc}" -eq 1 ]; then
result_command="${result_command} --unshare-ipc"
fi
if [ -n "${unshare_process}" ] && [ "${unshare_process}" -eq 1 ]; then
result_command="${result_command} --unshare-process"
fi
if [ -n "${unshare_devsys}" ] && [ "${unshare_devsys}" -eq 1 ]; then
result_command="${result_command} --unshare-devsys"
fi
if [ -n "${unshare_all}" ] && [ "${unshare_all}" -eq 1 ]; then
result_command="${result_command} --unshare-all"
fi
if [ -n "${home}" ]; then
result_command="${result_command} --home $(sanitize_variable "${home}")"
fi
+3
View File
@@ -115,6 +115,9 @@ This is a list of available options with the corresponding type:
| root | bool
| unshare_ipc | bool
| unshare_netns | bool
| unshare_process | bool
| unshare_devsys | bool
| unshare_all | bool
boolean options default to false if not specified.
string options can be broken in multiple declarations additively in order to improve