]> Frank Brehm's Git Trees - config/helga/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@helga.brehm-online.com>
Sat, 7 Jan 2017 11:51:46 +0000 (12:51 +0100)
committerroot <root@helga.brehm-online.com>
Sat, 7 Jan 2017 11:51:46 +0000 (12:51 +0100)
.etckeeper
conf.d/mdraid
cron.weekly/mdadm [changed mode: 0644->0755]
default/mdadm [new file with mode: 0644]
init.d/mdadm
init.d/mdraid

index 99285c2793febc6d8aef545b57c3a7dbf538dced..7d7c8e628caae4da28558e024d1c95a072c13523 100755 (executable)
@@ -1150,7 +1150,7 @@ maybe chmod 0750 'cron.hourly'
 maybe chmod 0755 'cron.hourly/rsync-git.sh'
 maybe chmod 0750 'cron.monthly'
 maybe chmod 0750 'cron.weekly'
-maybe chmod 0644 'cron.weekly/mdadm'
+maybe chmod 0755 'cron.weekly/mdadm'
 maybe chmod 0644 'crontab'
 maybe chmod 0644 'csh.env'
 maybe chgrp 'lp' 'cups'
@@ -1179,6 +1179,7 @@ maybe chmod 0644 'dbus-1/system.d/cups.conf'
 maybe chmod 0755 'default'
 maybe chmod 0644 'default/grub'
 maybe chmod 0644 'default/grub.orig'
+maybe chmod 0644 'default/mdadm'
 maybe chmod 0600 'default/useradd'
 maybe chmod 0644 'dhcpcd.conf'
 maybe chmod 0644 'dispatch-conf.conf'
index daa17abd87406043e3c603bcfdeb3c1695367c12..5694d732d006be4e88bebf521115b35e1ff1bf6c 100644 (file)
@@ -3,3 +3,9 @@
 # For people who run raid on top of some other layer (like
 # dmcrypt), use rc_need to specify that requirement.  See
 # the runscript(8) man page for more information.
+
+# Most configuration happens in /etc/mdadm.conf.
+
+# Pass additional options when assembling raids.
+# Note: This applies to all raids.
+MDADM_ASSEMBLE_OPTS=""
old mode 100644 (file)
new mode 100755 (executable)
index 72e401d..e2b35b5
@@ -1,4 +1,5 @@
 #!/bin/sh
+# This requires that AUTOCHECK is true in /etc/default/mdadm
 if [ -x /usr/sbin/checkarray ] && [ $(date +\%d) -le 7 ]; then
        /usr/sbin/checkarray --cron --all --idle --quiet
 fi
diff --git a/default/mdadm b/default/mdadm
new file mode 100644 (file)
index 0000000..921c70b
--- /dev/null
@@ -0,0 +1,9 @@
+# Based on Debian /etc/default/mdadm
+
+# Gentoo comment: The cronjob checks for this value to decide to actually
+#                 validate arrays. If missing, it does NOT actually do anything.
+# AUTOCHECK:
+#   should mdadm run periodic redundancy checks over your arrays? See
+#   /etc/cron.weekly/mdadm
+
+#AUTOCHECK=true
index c30004d0b5f1134a1170d27b0f5482c30fdddaf5..c721c4d0ade6a2ca3565fa3deaea6e2cabccb2bc 100755 (executable)
@@ -1,7 +1,7 @@
-#!/sbin/runscript
+#!/sbin/openrc-run
 # Copyright 1999-2006 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/mdadm.rc,v 1.2 2006/04/25 05:41:51 vapier Exp $
+# $Id$
 
 depend() {
        use logger dns net
index 27421e26ec20766904b7d3711d206eb6ea1e34e0..327b89ef1b7b7b5516ec7a092f9ab7b49a4828fa 100755 (executable)
@@ -1,7 +1,7 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/mdraid.rc,v 1.6 2011/11/12 21:06:44 vapier Exp $
+# $Id$
 
 depend() {
        before checkfs fsck
@@ -12,7 +12,7 @@ start() {
        local output
 
        ebegin "Starting up RAID devices"
-       output=$(mdadm -As 2>&1)
+       output=$(mdadm -As ${MDADM_ASSEMBLE_OPTS} 2>&1)
        eend $? "${output}"
 
        local pat="/dev/md_d*"