summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-12-02 14:44:24 -0800
committerStephen Hemminger <shemminger@vyatta.com>2011-12-02 14:44:24 -0800
commite8c8ebfc74203309871d4f291a378565f7ca4181 (patch)
treee819b26934e3e1f470048b3c717d11feb9b252c4 /debian
parent45628b369caa67c089f0984d31567df07d966b3e (diff)
downloadvyatta-cfg-quagga-e8c8ebfc74203309871d4f291a378565f7ca4181.tar.gz
vyatta-cfg-quagga-e8c8ebfc74203309871d4f291a378565f7ca4181.zip
md: don't start unless needed
Don't start RAID (md) unless root device is configured for RAID.
Diffstat (limited to 'debian')
-rw-r--r--debian/vyatta-cfg-system.postinst.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 6ce0a870..cc412632 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -190,11 +190,11 @@ password requisite pam_succeed_if.so user = root
' /etc/pam.d/passwd
fi
-#
# Ask mdadm to call our own event handling daemon
-#
+# Don't start mdadm daemon when running on livecd
if [ -e /etc/default/mdadm ]; then
sed -i 's+^DAEMON_OPTIONS=.*$+DAEMON_OPTIONS="--syslog --program /opt/vyatta/sbin/vyatta-raid-event"+' /etc/default/mdadm
+ sed -i 's/^START_DAEMON.*$/START_DAEMON=false/' /etc/default/mdadm
fi
# remove unnecessary ddclient script in /etc/ppp/ip-up.d/