mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
bash-completion: nspawn: add missing options
This commit is contained in:
parent
4deb55036b
commit
86b4188d5e
|
@ -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") )
|
||||
|
|
Loading…
Reference in a new issue