[Lunar-commits] <moonbase> systemd: more things to get it to work properly.

Dave Brown dagbrown at lunar-linux.org
Tue May 10 10:23:53 CEST 2011


commit 4117a064020276a5f56d7dead33a3cbebfcc35df
Author: Dave Brown <dagbrown at lunar-linux.org>
Date:   Tue May 10 17:23:53 2011 +0900

    systemd: more things to get it to work properly.
    
    - added autofs dependency
    - added check for kernel features that it requires (control groups and
      devtmpfs)
---
 zbeta/systemd/DEPENDS   |    1 +
 zbeta/systemd/PRE_BUILD |   10 ++++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/zbeta/systemd/DEPENDS b/zbeta/systemd/DEPENDS
index bd99b80..4884b70 100644
--- a/zbeta/systemd/DEPENDS
+++ b/zbeta/systemd/DEPENDS
@@ -5,6 +5,7 @@ depends dbus
 depends libcap
 depends libcgroup
 depends udev
+depends autofs
 
 optional_depends  "vala"  ""  "--disable-gtk"  "for user interface tools"
 
diff --git a/zbeta/systemd/PRE_BUILD b/zbeta/systemd/PRE_BUILD
new file mode 100644
index 0000000..8f65dba
--- /dev/null
+++ b/zbeta/systemd/PRE_BUILD
@@ -0,0 +1,10 @@
+if ! kernel_option_present CONFIG_DEVTMPFS &&
+   ! kernel_option_present CONFIG_CGROUPS
+then
+    message "${PROBLEM_COLOR}PROBLEM: ${MODULE_COLOR}system${DEFAULT_COLOR} detected incompatible kernel options."
+    message "Please ensure that CONFIG_DEVTMPFS and CONFIG_CGROUPS are set,"
+    message "then recompile your kernel and try 'lin systemd' again."
+    exit 1
+fi
+
+default_pre_build


More information about the Lunar-commits mailing list