[lxc-devel] [distrobuilder/master] chroot: Remove obsolete code

monstermunchkin on Github lxc-bot at linuxcontainers.org
Fri Mar 6 10:13:00 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200306/5eb0c980/attachment.bin>
-------------- next part --------------
From d2b201ceeca59b67b25544ecba4c6b1e634a5edf Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Fri, 6 Mar 2020 11:12:19 +0100
Subject: [PATCH] chroot: Remove obsolete code

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 shared/chroot.go | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/shared/chroot.go b/shared/chroot.go
index 6002426..711b177 100644
--- a/shared/chroot.go
+++ b/shared/chroot.go
@@ -122,14 +122,6 @@ func moveMounts(mounts []ChrootMount) error {
 		return err
 	}
 
-	// Make sure /dev/fuse is unmounted
-	if lxd.PathExists("/dev/fuse") {
-		err = unix.Unmount("/dev/fuse", 0)
-		if err != nil {
-			return errors.Wrap(err, "Failed to unmount /dev/fuse")
-		}
-	}
-
 	return nil
 
 }


More information about the lxc-devel mailing list