[lxc-devel] [lxd/master] Cover snap mount namespace

stgraber on Github lxc-bot at linuxcontainers.org
Sun Aug 2 16:15:40 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 301 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200802/da56f610/attachment.bin>
-------------- next part --------------
From b5dd17a1f4c4763e32cd8b9a7043438dff0c163c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Sun, 2 Aug 2020 12:13:05 -0400
Subject: [PATCH 1/2] doc: s/container/instance/g
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 doc/metadata.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/metadata.yaml b/doc/metadata.yaml
index f0c87c8c90..a51ec6c0a0 100644
--- a/doc/metadata.yaml
+++ b/doc/metadata.yaml
@@ -76,7 +76,7 @@ navigation:
         - title: Main API extensions
           location: api-extensions.md
 
-        - title: Container API documentation
+        - title: Instance API documentation
           location: dev-lxd.md
 
     - title: Internals & debugging
@@ -84,7 +84,7 @@ navigation:
         - title: Container environment
           location: container-environment.md
 
-        - title: Container migration
+        - title: Instance migration
           location: migration.md
 
         - title: Daemon behavior

From ca0ca07f7faa65619df477d87a7aedf2272b2aea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Sun, 2 Aug 2020 12:15:18 -0400
Subject: [PATCH 2/2] doc/backup: Add note about the snap mntns
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 doc/backup.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/backup.md b/doc/backup.md
index 46cb038a27..839dc43bd3 100644
--- a/doc/backup.md
+++ b/doc/backup.md
@@ -70,3 +70,8 @@ Once everything is mounted where it should be, you can now run `lxd import NAME-
 If any matching database entry for resources declared in `backup.yaml` is found
 during import, the command will refuse to restore the instance.  This can be
 overridden by passing `--force`.
+
+NOTE: When dealing with mounts and the snap, you may need to either
+perform a full restart of the snap with `snap stop` and `snap start` or
+perform the mounts from within the snap environment using `nsenter
+--mount=/run/snapd/ns/lxd.mnt`.


More information about the lxc-devel mailing list