[systemd-commits] 2 commits - src/tmpfiles.c TODO units/dev-hugepages.automount units/dev-mqueue.automount

Lennart Poettering lennart at kemper.freedesktop.org
Fri Jul 1 16:46:01 PDT 2011


 TODO                          |    4 ++++
 src/tmpfiles.c                |    8 ++------
 units/dev-hugepages.automount |    1 +
 units/dev-mqueue.automount    |    1 +
 4 files changed, 8 insertions(+), 6 deletions(-)

New commits:
commit 21bdae12e11ae20460715475d8a0c991f15464ac
Author: Lennart Poettering <lennart at poettering.net>
Date:   Sat Jul 2 01:44:49 2011 +0200

    tmpfiles: don't exit with an error code if we cannot access all files
    
    This is just to avoid confusion if people use stuff like FUSE file
    systems or SELinux which might disallow access to files even if tmpfiles
    is running as root.
    
    We still log away if we cannot access a file, but we do not return a
    failure exit code in the end.

diff --git a/TODO b/TODO
index 92c90ee..b999ce1 100644
--- a/TODO
+++ b/TODO
@@ -71,6 +71,8 @@ Features:
 
 * support notifications for services being enabled/disabled
 
+* add support for /bin/mount -s
+
 * GC unreferenced jobs (such as .device jobs)
 
 * add JoinControllers= to system.conf to mount certain cgroup
@@ -180,6 +182,8 @@ Features:
 
 * detect LXC environment
 
+* investigate whether the gnome pty helper should be moved into systemd, to provide cgroup support.
+
 * Maybe store in unit files whether a service should be enabled by default on package installation
   (belongs into a distro pattern though, not in an upstream package's service file)
 
diff --git a/src/tmpfiles.c b/src/tmpfiles.c
index 954c3b7..4394f0d 100644
--- a/src/tmpfiles.c
+++ b/src/tmpfiles.c
@@ -983,15 +983,11 @@ int main(int argc, char *argv[]) {
                 strv_free(files);
         }
 
-
-
         HASHMAP_FOREACH(i, globs, iterator)
-                if (process_item(i) < 0)
-                        r = EXIT_FAILURE;
+                process_item(i);
 
         HASHMAP_FOREACH(i, items, iterator)
-                if (process_item(i) < 0)
-                        r = EXIT_FAILURE;
+                process_item(i);
 
 finish:
         while ((i = hashmap_steal_first(items)))

commit 26b8e979c8a6340180716f686dbe26e4906bc568
Author: Lennart Poettering <lennart at poettering.net>
Date:   Sat Jul 2 01:00:00 2011 +0200

    units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled in kernel

diff --git a/units/dev-hugepages.automount b/units/dev-hugepages.automount
index dfd3868..6e03df3 100644
--- a/units/dev-hugepages.automount
+++ b/units/dev-hugepages.automount
@@ -9,6 +9,7 @@
 Description=Huge Pages File System Automount Point
 DefaultDependencies=no
 Before=sysinit.target
+ConditionPathExists=/sys/kernel/mm/hugepages
 
 [Automount]
 Where=/dev/hugepages
diff --git a/units/dev-mqueue.automount b/units/dev-mqueue.automount
index 73c4110..1061597 100644
--- a/units/dev-mqueue.automount
+++ b/units/dev-mqueue.automount
@@ -9,6 +9,7 @@
 Description=POSIX Message Queue File System Automount Point
 DefaultDependencies=no
 Before=sysinit.target
+ConditionPathExists=/proc/sys/fs/mqueue
 
 [Automount]
 Where=/dev/mqueue



More information about the systemd-commits mailing list