[lxc-devel] [lxd/master] index.md: add PATH env variable to sudo command example

rafaeldtinoco on Github lxc-bot at linuxcontainers.org
Sat Apr 18 04:31:17 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 627 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200417/35218a0a/attachment.bin>
-------------- next part --------------
From 64f4b430a940515835a74db7364dd73a94aa21a7 Mon Sep 17 00:00:00 2001
From: Rafael David Tinoco <rafaeldtinoco at ubuntu.com>
Date: Sat, 18 Apr 2020 01:24:54 -0300
Subject: [PATCH] index.md: add PATH env variable to sudo command example

Tiny detail that makes a big difference: Following README file, at the
moment of machine setup, PATH should be $GOPATH/bin. This PATH contains
the "lxd-agent" binary and, if PATH is not passed by sudo, it won't get
included in machine's 9p config filesystem.

Signed-off-by: Rafael David Tinoco <rafaeldtinoco at ubuntu.com>
---
 doc/index.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/index.md b/doc/index.md
index 8ca5273edb..1d1adb99ac 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -150,7 +150,7 @@ Now you can run the daemon (the `--group sudo` bit allows everyone in the `sudo`
 group to talk to LXD; you can create your own group if you want):
 
 ```bash
-sudo -E LD_LIBRARY_PATH=$LD_LIBRARY_PATH $GOPATH/bin/lxd --group sudo
+sudo -E PATH=$PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH $GOPATH/bin/lxd --group sudo
 ```
 
 ## Security


More information about the lxc-devel mailing list