]> git.proxmox.com Git - mirror_lxc.git/blobdiff - config/bash/lxc.in
spelling: output
[mirror_lxc.git] / config / bash / lxc.in
index 344d5cb2acd87b618a13367ba63d5b833a1e7e03..43056882f2ee85c6371dd864255118194c1aef78 100644 (file)
@@ -11,6 +11,10 @@ _have lxc-start && {
         COMPREPLY=( $( compgen -W "$(ls @LXCTEMPLATEDIR@/ | sed -e 's|^lxc-||' )" "$cur" ) )
     }
 
+    _lxc_backing_stores() {
+        COMPREPLY=( $( compgen -W "dir lvm loop btrfs zfs rbd best" "$cur" ) )
+    }
+
     _lxc_generic_n() {
         local cur prev
 
@@ -59,6 +63,11 @@ _have lxc-start && {
                 _lxc_templates "$cur"
                 return 0
             ;;
+
+            -B)
+                _lxc_backing_stores "$cur"
+                return 0
+            ;;
         esac
 
         return 1
@@ -98,6 +107,5 @@ _have lxc-start && {
 
     complete -o default -F _lxc_generic_t lxc-create
 
-    complete -o default -F _lxc_generic_o lxc-clone
-    complete -o default -F _lxc_generic_o lxc-start-ephemeral
+    complete -o default -F _lxc_generic_o lxc-copy
 }