- Backing Store types are hard-coded (Not sure how to get programmatically)
- Closes #1236
Signed-off-by: Abbas Ally <abbasally5@yahoo.com>
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
_lxc_templates "$cur"
return 0
;;
+
+ -B)
+ _lxc_backing_stores "$cur"
+ return 0
+ ;;
esac
return 1