diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-12-02 14:44:24 -0800 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2011-12-02 14:44:24 -0800 |
commit | e8c8ebfc74203309871d4f291a378565f7ca4181 (patch) | |
tree | e819b26934e3e1f470048b3c717d11feb9b252c4 /scripts/install-system | |
parent | 45628b369caa67c089f0984d31567df07d966b3e (diff) | |
download | vyatta-cfg-system-e8c8ebfc74203309871d4f291a378565f7ca4181.tar.gz vyatta-cfg-system-e8c8ebfc74203309871d4f291a378565f7ca4181.zip |
md: don't start unless needed
Don't start RAID (md) unless root device is configured for RAID.
Diffstat (limited to 'scripts/install-system')
-rwxr-xr-x | scripts/install-system | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/install-system b/scripts/install-system index cfa31515..63a5d3d5 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -1599,9 +1599,11 @@ fi MDADM_CONFIG_FILE=$rootfsdir/etc/default/mdadm if [ -e $MDADM_CONFIG_FILE ]; then if [ ${INSTALL_DRIVE:0:2} = "md" ]; then - sed -i 's/^START_DAEMON.*$/START_DAEMON=true/' $MDADM_CONFIG_FILE + sed -i -e 's/^START_DAEMON.*$/START_DAEMON=true/' \ + -e 's/^AUTOSTART=.*$/AUTOSTART=true/' $MDADM_CONFIG_FILE else - sed -i 's/^START_DAEMON.*$/START_DAEMON=false/' $MDADM_CONFIG_FILE + sed -i -e 's/^START_DAEMON.*$/START_DAEMON=false/' \ + -e 's/^AUTOSTART=.*$/AUTOSTART=false/' $MDADM_CONFIG_FILE fi fi |