mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-19 01:14:49 -05:00
assemble: add new unshare options from create
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user