summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/todo/property_to_install_propellor/comment_2_9fea601af57777e1cb49952483f4da63._comment7
-rw-r--r--src/Propellor/Property/Bootstrap.hs3
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/todo/property_to_install_propellor/comment_2_9fea601af57777e1cb49952483f4da63._comment b/doc/todo/property_to_install_propellor/comment_2_9fea601af57777e1cb49952483f4da63._comment
new file mode 100644
index 00000000..f862f79b
--- /dev/null
+++ b/doc/todo/property_to_install_propellor/comment_2_9fea601af57777e1cb49952483f4da63._comment
@@ -0,0 +1,7 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2017-04-09T20:49:04Z"
+ content="""
+Well, seems that `unshare` does not work in a chroot. Hmm.
+"""]]
diff --git a/src/Propellor/Property/Bootstrap.hs b/src/Propellor/Property/Bootstrap.hs
index 6158d967..4a60276e 100644
--- a/src/Propellor/Property/Bootstrap.hs
+++ b/src/Propellor/Property/Bootstrap.hs
@@ -77,6 +77,9 @@ clonedFrom reposource = property ("Propellor repo cloned from " ++ originloc) $
-- | Runs the shell command with the true localdir exposed,
-- not the one bind-mounted into a chroot.
+--
+-- FIXME: unshare -m does not work in a chroot!
+-- "unshare: cannot change root filesystem propagation: Invalid argument"
exposeTrueLocaldir :: String -> Propellor Bool
exposeTrueLocaldir s = do
s' <- ifM inChroot