chiark / gitweb /
Add AllowIsolate=yes to snapshots
[elogind.git] / src / core / snapshot.c
index 5bb3c4a8fd1548c598331f62d7d9310969d50130..a3f5e908ebcf9346a7a173a187ffe7e3fa0cce48 100644 (file)
@@ -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;
@@ -281,7 +282,6 @@ static const char* const snapshot_state_table[_SNAPSHOT_STATE_MAX] = {
 DEFINE_STRING_TABLE_LOOKUP(snapshot_state, SnapshotState);
 
 const UnitVTable snapshot_vtable = {
-        .suffix = ".snapshot",
         .object_size = sizeof(Snapshot),
 
         .no_alias = true,