~ubuntu-branches/ubuntu/natty/mdadm/natty-updates

« back to all changes in this revision

Viewing changes to debian/mdadm.config

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2009-11-15 17:53:53 UTC
  • Revision ID: package-import@ubuntu.com-20091115175353-sjocw18tg5x3h0ch
Tags: 2.6.7.1-1ubuntu14
* Fix boot_degraded handling during installation (LP: #462258):
  - Source /lib/preseed/preseed.sh in check.d/root_on_raid.
  - Change mdadm/boot_degraded default in templates file to match the
    apparently-intended behaviour (i.e. false), and stop overriding
    debconf preseeding if BOOT_DEGRADED is not already set in the
    initramfs configuration file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
CONFIG="/etc/initramfs-tools/conf.d/mdadm"
71
71
BOOT_DEGRADED=""
72
72
[ -s "$CONFIG" ] && . "$CONFIG"
73
 
[ -n "$BOOT_DEGRADED" ] || BOOT_DEGRADED="false"
74
 
db_set mdadm/boot_degraded "$BOOT_DEGRADED"
 
73
if [ -n "$BOOT_DEGRADED" ]; then
 
74
  db_set mdadm/boot_degraded "$BOOT_DEGRADED"
 
75
fi
75
76
db_input medium mdadm/boot_degraded || :
76
77
db_go