summaryrefslogtreecommitdiffstats
path: root/bash-completion/mount
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/mount')
-rw-r--r--bash-completion/mount18
1 files changed, 18 insertions, 0 deletions
diff --git a/bash-completion/mount b/bash-completion/mount
index c7e4bead6..35cb19f7a 100644
--- a/bash-completion/mount
+++ b/bash-completion/mount
@@ -34,6 +34,20 @@ _mount_module()
COMPREPLY=( $(compgen -W "$UUIDS" -- $cur) )
return 0
;;
+ '-N'|'--namespace')
+ local NAMESPACE
+ NAMESPACE="$(lsns --type mnt --output PATH,PID --noheadings)"
+ COMPREPLY=( $(compgen -W "$NAMESPACE" -- $cur) )
+ return 0
+ ;;
+ '--options-mode')
+ COMPREPLY=( $(compgen -W "ignore append prepend replace" -- $cur) )
+ return 0
+ ;;
+ '--options-source')
+ COMPREPLY=( $(compgen -W "fstab mtab disable" -- $cur) )
+ return 0
+ ;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
@@ -50,6 +64,9 @@ _mount_module()
--show-labels
--no-mtab
--options
+ --options-mode
+ --options-source
+ --options-source-force
--test-opts
--read-only
--types
@@ -58,6 +75,7 @@ _mount_module()
--verbose
--version
--read-write
+ --namespace
--label
--uuid
--bind