[systemd-devel] [PATCH] Add AllowIsolate=yes to snapshots

Oleksii Shevchuk alxchk at gmail.com
Sun Mar 31 04:40:04 PDT 2013


---
 TODO                | 2 --
 src/core/snapshot.c | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/TODO b/TODO
index 3bf442b..584646b 100644
--- a/TODO
+++ b/TODO
@@ -47,8 +47,6 @@ Fedora 19:
 
 Features:
 
-* snapshots really should be isolatable, but currently aren't.
-
 * seems that when we follow symlinks to units we prefer the symlink
   destination path over /etc and /usr. We shouldn't do that. Instead
   /etc should always override /run+/usr and also any symlink
diff --git a/src/core/snapshot.c b/src/core/snapshot.c
index 5c2a319..a3f5e90 100644
--- a/src/core/snapshot.c
+++ b/src/core/snapshot.c
@@ -256,6 +256,7 @@ int snapshot_create(Manager *m, const char *name, bool cleanup, DBusError *e, Sn
         }
 
         SNAPSHOT(u)->cleanup = cleanup;
+        u->allow_isolate = true;
         *_s = SNAPSHOT(u);
 
         return 0;
-- 
1.8.1.2



More information about the systemd-devel mailing list