Bug#304358: lilo-installer: should not try to make MD device active
Package: lilo-installer
Severity: normal
Tags: d-i patch
When user selects to install lilo on MD device lilo-installer tries to
make it active. It should not do this. Attached patch fixes this bug and
also makes it possible to enter MD device manually.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11
Locale: LANG=uk_UA.KOI8-U, LC_CTYPE=uk_UA.KOI8-U (charmap=KOI8-U)
Index: debian/postinst
===================================================================
--- debian/postinst (revision 26681)
+++ debian/postinst (working copy)
@@ -86,14 +86,14 @@
db_get lilo-installer/manual_bootdev
case "$RET" in
- /dev/ide*|/dev/discs/*|/dev/scsi/*)
+ /dev/ide*|/dev/discs/*|/dev/scsi/*|/dev/md/*)
if [ -b "$RET" ]; then
bootdev="$(mapdevfs $RET)"
not_done=0
part=$(echo $bootdev | sed 's/.*\([0-9]\)/part\1/')
fi
;;
- /dev/[hs]d[a-z]*)
+ /dev/[hs]d[a-z]*|/dev/md*)
bootdev=$RET;
not_done=0
part=$(echo $bootdev | sed 's/.*\([0-9]\)/part\1/')
@@ -118,7 +118,8 @@
db_progress info lilo-installer/progress_active
# If installing to a partition (not MBR), offer to make it active
-if echo "${bootdev}" | grep -q '[0-9]$'; then
+# Do not try to make MD device active
+if (echo "${bootdev}" | grep -q '[0-9]$') && !(echo "${bootdev}" | grep -q '^/dev/md'); then
# Installing to a partition, check if it is already marked active
if ! fdisk -l ${disc_offered_devfs} | grep "^/dev[a-z0-9/]\+${part} " | grep -q '\*'; then
# partition is not marked active, offer to make it so
Reply to: