chiark / gitweb /
journal: automaticall reset location when the set of matches changes
[elogind.git] / src / device.c
index d507b701f138ecafe0b6e20e3e4aeda8399ed219..bffeca0d10c7a857bb4ae1212799ad8fbbacdc42 100644 (file)
@@ -72,6 +72,7 @@ static void device_init(Unit *u) {
         d->meta.job_timeout = DEFAULT_TIMEOUT_USEC;
 
         d->meta.ignore_on_isolate = true;
+        d->meta.ignore_on_snapshot = true;
 }
 
 static void device_done(Unit *u) {
@@ -582,9 +583,12 @@ DEFINE_STRING_TABLE_LOOKUP(device_state, DeviceState);
 
 const UnitVTable device_vtable = {
         .suffix = ".device",
+        .sections =
+                "Unit\0"
+                "Device\0"
+                "Install\0",
 
         .no_instances = true,
-        .no_snapshots = true,
 
         .init = device_init,