Blob Blame History Raw
From 03f5a7eca1dd77a00cf51c9675ebfb6d5d2a1164 Mon Sep 17 00:00:00 2001
From: "Daniel P. Berrange" <berrange@redhat.com>
Date: Tue, 1 Oct 2013 13:51:34 +0100
Subject: [PATCH] Don't overmount '/root' in QEMU sandboxes

If the user wants to replace '/root' they can do that
explicitly. Don't overmount it ourselves. This fixes
an inconsistency between LXC & QEMU setups.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 6ae67143e69f435b564164bfa67a174be7bc9702)
---
 libvirt-sandbox/libvirt-sandbox-init-qemu.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libvirt-sandbox/libvirt-sandbox-init-qemu.c b/libvirt-sandbox/libvirt-sandbox-init-qemu.c
index f09c6d9..079f83f 100644
--- a/libvirt-sandbox/libvirt-sandbox-init-qemu.c
+++ b/libvirt-sandbox/libvirt-sandbox-init-qemu.c
@@ -284,7 +284,6 @@ main(int argc ATTR_UNUSED, char **argv ATTR_UNUSED)
     /* Main special filesystems */
     mount_other("/dev", "tmpfs", 0755);
     mount_other_opts("/dev/pts", "devpts", "gid=5,mode=620,ptmxmode=000", 0755);
-    mount_other("/root", "tmpfs", 0755);
     mount_other("/sys", "sysfs", 0755);
     mount_other("/proc", "proc", 0755);
     //mount_other("/selinux", "selinuxfs", 0755);