chiark / gitweb /
main: fix loading of default target
authorLennart Poettering <lennart@poettering.net>
Fri, 28 Jun 2013 16:37:15 +0000 (18:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 28 Jun 2013 16:37:15 +0000 (18:37 +0200)
TODO
src/core/main.c

diff --git a/TODO b/TODO
index 055d9739d2f8f256114b854107d73362cee8328c..8a3df6037cc74053246a433f9f81dd4147f06540 100644 (file)
--- a/TODO
+++ b/TODO
@@ -28,6 +28,8 @@ Fedora 19:
 
 Features:
 
+* transient units: allow creating auxiliary units with the same call
+
 * make BlockIODeviceWeight=, BlockIODeviceBandwidth= runtime settable
 
 * split up BlockIOWeight= and BlockIODeviceWeight=
@@ -44,9 +46,6 @@ Features:
 
 * split out CreateMachine into systemd-machined
 
-* "transient" units, i.e units that are not sourced from disk but
-  created only transiently via bus calls
-
 * introduce new Scope unit type then make logind's session and machine
   registration use this to set up cgroups
 
index 102cc3b3158352ca96c48263fb63d76df3fc48ad..2bd1efd5d02202362cd6bd90c4fccc038e64f1c5 100644 (file)
@@ -1679,7 +1679,7 @@ int main(int argc, char *argv[]) {
                                 log_error("Failed to load rescue target: %s", bus_error(&error, r));
                                 dbus_error_free(&error);
                                 goto finish;
-                        } else if (target->load_state == UNIT_ERROR || target->load_state == UNIT_ERROR) {
+                        } else if (target->load_state == UNIT_ERROR || target->load_state == UNIT_NOT_FOUND) {
                                 log_error("Failed to load rescue target: %s", strerror(-target->load_error));
                                 goto finish;
                         } else if (target->load_state == UNIT_MASKED) {