[systemd-commits] 2 commits - TODO src/hibernate-resume

Lennart Poettering lennart at kemper.freedesktop.org
Thu Aug 28 11:26:36 PDT 2014


 TODO                                    |    2 ++
 src/hibernate-resume/hibernate-resume.c |    4 ++++
 2 files changed, 6 insertions(+)

New commits:
commit ac528e3e3b93981cc9692250556b113acce7eb17
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu Aug 28 20:24:12 2014 +0200

    hibernate-resume: refuse to run outside of an initrd

diff --git a/src/hibernate-resume/hibernate-resume.c b/src/hibernate-resume/hibernate-resume.c
index 8f68f81..b234a0b 100644
--- a/src/hibernate-resume/hibernate-resume.c
+++ b/src/hibernate-resume/hibernate-resume.c
@@ -46,6 +46,10 @@ int main(int argc, char *argv[]) {
 
         umask(0022);
 
+        /* Refuse to run unless we are in an initrd() */
+        if (!in_initrd())
+                return EXIT_SUCCESS;
+
         device = argv[1];
 
         if (stat(device, &st) < 0) {

commit 202aea456dfb279cd34da7bfd1880f6ac0fd849f
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu Aug 28 20:23:52 2014 +0200

    update TODO

diff --git a/TODO b/TODO
index a00c13d..59555e6 100644
--- a/TODO
+++ b/TODO
@@ -24,6 +24,8 @@ External:
 
 Features:
 
+* maybe add "systemctl edit" that copies unit files from /usr/lib/systemd/system to /etc/systemd/system and invokes vim on them
+
 * dbus: add new message hdr field for allowing interactive auth, write spec for it. update dbus spec to mandate that unknown flags *must* be ignored...
 
 * maybe introduce AssertXYZ= similar to ConditionXYZ= that causes a unit to fail (instead of skipping it) if some condition is not true...



More information about the systemd-commits mailing list