]> gitweb.fluxo.info Git - puppet-loginrecords.git/commitdiff
Take into account that disabling RAMRUN is not supported since Wheezy.
authorintrigeri <intrigeri@boum.org>
Wed, 9 Nov 2011 18:35:05 +0000 (19:35 +0100)
committerintrigeri <intrigeri@boum.org>
Wed, 9 Nov 2011 18:46:44 +0000 (19:46 +0100)
README
manifests/debian.pp

diff --git a/README b/README
index 68cf39b1b67296270eaff1b5a63e09df9cddae97..8395501bb3dcd540fde2d6d9750d70cad2e9016a 100644 (file)
--- a/README
+++ b/README
@@ -12,6 +12,7 @@ Dependencies
 ============
 
 - the common module: git://labs.riseup.net/shared-common
+- the lsb module: git://labs.riseup.net/shared-lsb
 
 Configuration
 =============
@@ -54,6 +55,9 @@ Default: have the initscripts mount a ramdisk on /var/run.
 When set to a false, non-empty value, the mounting of a ramdisk on
 /var/run is disabled.
 
+This has no effect on Debian Wheezy or later: a ramdisk is always
+mounted on /run, regardless of this setting.
+
 Please note that the changes only take effect on reboot. When enabling
 this feature, you probably want to get rid of any file previously
 stored on the files (such as utmp) stored in the non-ramdisk
index e68185b63f7f5f96b169259c5f8208cc1cfabe4a..c20be6c32872a3253a7ae1caa459e532e659dd3b 100644 (file)
@@ -33,7 +33,10 @@ class loginrecords::debian inherits loginrecords::base {
   if $loginrecords::ramdisk_on_var_run {
     class{'loginrecords::ramrun::enable': }
   } else {
-    class{'loginrecords::ramrun::disable': }
+    case $lsbdistrelease {
+      'lenny','squeeze': { class{'loginrecords::ramrun::disable': } }
+      default: { err("Disabling RAMRUN is not supported since Wheezy") }
+    }
   }
 
 }