summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-01-10 23:20:45 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-01-10 23:20:45 +0900
commit86b4188d5ef7fe284fa9f8c92f6e538c3e565834 (patch)
tree39f6d5ee9aa44b888d005360b42c1562b6dcc62a /shell-completion
parent4deb55036bf2369fe9b41e36d06e9fddf87206bc (diff)
bash-completion: nspawn: add missing options
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/systemd-nspawn27
1 files changed, 18 insertions, 9 deletions
diff --git a/shell-completion/bash/systemd-nspawn b/shell-completion/bash/systemd-nspawn
index 4f2fbef84f..660972d9f1 100644
--- a/shell-completion/bash/systemd-nspawn
+++ b/shell-completion/bash/systemd-nspawn
@@ -57,12 +57,13 @@ _systemd_nspawn() {
local i verb comps
local -A OPTS=(
- [STANDALONE]='-h --help --version --private-network -b --boot --read-only -q --quiet --share-system --keep-unit --network-veth -j'
- [ARG]='-D --directory -u --user --uuid --capability --drop-capability --link-journal --bind --bind-ro -M --machine
- -S --slice --setenv -Z --selinux-context -L --selinux-apifs-context --register --network-interface --network-bridge
- --personality -i --image --tmpfs --volatile
- --network-macvlan --kill-signal --template
- --notify-ready'
+ [STANDALONE]='-h --help --version --private-network -b --boot --read-only -q --quiet --share-system --keep-unit -n --network-veth
+ -j -x --ephemeral -a --as-pid2 --private-users-chown -U'
+ [ARG]='-D --directory -u --user --uuid --capability --drop-capability --link-journal --bind --bind-ro -M --machine
+ -S --slice -E --setenv -Z --selinux-context -L --selinux-apifs-context --register --network-interface --network-bridge
+ --personality -i --image --tmpfs --volatile --network-macvlan --kill-signal --template --notify-ready --root-hash
+ --chdir --pivot-root --property --private-users --network-namespace-path --network-ipvlan --network-veth-extra
+ --network-zone -p --port --system-call-filter --overlay --overlay-ro --settings'
)
_init_completion || return
@@ -76,7 +77,7 @@ _systemd_nspawn() {
--user|-u)
comps=$( __get_users )
;;
- --uuid)
+ --uuid|--root-hash)
comps=''
;;
--capability)
@@ -106,7 +107,7 @@ _systemd_nspawn() {
--slice|-S)
comps=$( __get_slices )
;;
- --setenv)
+ --setenv|-E)
comps=$( __get_env )
;;
--selinux-context|-Z)
@@ -143,7 +144,15 @@ _systemd_nspawn() {
;;
--notify-ready)
comps='yes no'
- return
+ ;;
+ --private-users)
+ comps='yes no pick'
+ ;;
+ --network-namespace-path)
+ comps=$( compgen -A file -- "$cur" )
+ ;;
+ --settings)
+ comps='yes no override trusted'
;;
esac
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )