summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-07-13 12:15:51 -0400
committerGitHub <noreply@github.com>2019-07-13 12:15:51 -0400
commit9a846892a29b710a34a3461995075f3052505b91 (patch)
treed44299e7e3af0bdfdaf544759b9f14ddb3147608 /pkgs/os-specific
parentf0df76e4b2b9a44ac227b8a66b25123d187230f8 (diff)
parente5b473afe998aa6a99ee1b5e845f01672e1d3acf (diff)
downloadnixpkgs-9a846892a29b710a34a3461995075f3052505b91.tar
nixpkgs-9a846892a29b710a34a3461995075f3052505b91.tar.gz
nixpkgs-9a846892a29b710a34a3461995075f3052505b91.tar.bz2
nixpkgs-9a846892a29b710a34a3461995075f3052505b91.tar.lz
nixpkgs-9a846892a29b710a34a3461995075f3052505b91.tar.xz
nixpkgs-9a846892a29b710a34a3461995075f3052505b91.tar.zst
nixpkgs-9a846892a29b710a34a3461995075f3052505b91.zip
Merge pull request #64532 from plumelo/feature/lxd-criu
lxd: add criu to path and bash completions, lxc: fix bash completions
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/lxc/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/lxc/default.nix b/pkgs/os-specific/linux/lxc/default.nix
index a8668313465..e834a769c78 100644
--- a/pkgs/os-specific/linux/lxc/default.nix
+++ b/pkgs/os-specific/linux/lxc/default.nix
@@ -67,6 +67,17 @@ stdenv.mkDerivation rec {
 
   postInstall = ''
     wrapPythonPrograms
+
+    completions=(
+      lxc-attach lxc-cgroup lxc-console lxc-destroy lxc-device lxc-execute
+      lxc-freeze lxc-info lxc-monitor lxc-snapshot lxc-stop lxc-unfreeze
+    )
+    pushd $out/share/bash-completion/completions/
+      mv lxc lxc-start
+      for completion in ''${completions[@]}; do
+        ln -sfn lxc-start $completion
+      done
+    popd
   '';
 
   meta = {