From efeb99cb524cd52da45008fdfc887eff644d1afc Mon Sep 17 00:00:00 2001 From: Ciaby Date: Fri, 6 Mar 2015 08:37:07 -0600 Subject: [PATCH] Add /etc/default/rcS, automatically run fsck at boot. --- .../files/etc/default/rcS | 27 +++++++++++++++++++ .../rhizomatica_base_system/manifests/init.pp | 6 +++++ 2 files changed, 33 insertions(+) create mode 100644 modules/rhizomatica_base_system/files/etc/default/rcS diff --git a/modules/rhizomatica_base_system/files/etc/default/rcS b/modules/rhizomatica_base_system/files/etc/default/rcS new file mode 100644 index 0000000..c939a81 --- /dev/null +++ b/modules/rhizomatica_base_system/files/etc/default/rcS @@ -0,0 +1,27 @@ +# +# /etc/default/rcS +# +# Default settings for the scripts in /etc/rcS.d/ +# +# For information about these variables see the rcS(5) manual page. +# +# This file belongs to the "initscripts" package. + +# delete files in /tmp during boot older than x days. +# '0' means always, -1 or 'infinite' disables the feature +TMPTIME=0 + +# spawn sulogin during boot, continue normal boot if not used in 30 seconds +SULOGIN=no + +# do not allow users to log in until the boot has completed +DELAYLOGIN=no + +# assume that the BIOS clock is set to UTC time (recommended) +UTC=yes + +# be more verbose during the boot process +VERBOSE=no + +# automatically repair filesystems with inconsistencies during boot +FSCKFIX=yes diff --git a/modules/rhizomatica_base_system/manifests/init.pp b/modules/rhizomatica_base_system/manifests/init.pp index a9c0fef..1d64c6a 100644 --- a/modules/rhizomatica_base_system/manifests/init.pp +++ b/modules/rhizomatica_base_system/manifests/init.pp @@ -101,6 +101,12 @@ class rhizomatica_base_system { include ntp include kannel +#FSCK at boot + file { '/etc/default/rcS': + ensure => present, + source => 'puppet:///modules/rhizomatica_base_system/etc/default/rcS', + } + #Grub fix file { '/etc/default/grub': ensure => present,