12.04.2005 о 15:55 -0400 Joey Hess написав(-ла): > Eugeniy Meshcheryakov wrote: > > This bug also occurs during /boot on LVM on sw RAID1 installation. Output > > from lilo is: > > > > Fatal: map file must be on the boot RAID partition > > > > Exit code is 1. > > > > Resolved by adding raid-extra-boot=mbr-only to lilo.conf. > > > > Maybe this option should go into lilo.conf by default (lilo now used > > only for /boot-on-LVM-on-RAID1 and /boot-on-LVM installations, and this > > option will have no effect for second)? > > Lilo is also used by experts who want lilo for any installation type. > I'm not familiar with the option though to know if it would cause > problems then. Couldn't we add it only for SW raid root installs? > Ok, patch attached. -- Eugeniy Meshcheryakov Kyiv National Taras Shevchenko University Information and Computing Centre http://icc.univ.kiev.ua
Index: debian/postinst =================================================================== --- debian/postinst (revision 26697) +++ debian/postinst (working copy) @@ -110,6 +110,14 @@ ;; esac +if echo "${bootdev}" | grep -q '^/dev/md'; then + raid_boot="yes" + raid_extra_boot="raid-extra-boot=mbr-only" +else + raid_boot="no" + raid_extra_boot="# raid-extra-boot=mbr-only" +fi + db_subst lilo-installer/progress_active bootdev "$bootdev" db_subst lilo-installer/progress_running bootdev "$bootdev" @@ -119,7 +127,7 @@ # If installing to a partition (not MBR), offer to make it active # Do not try to make MD device active -if (echo "${bootdev}" | grep -q '[0-9]$') && !(echo "${bootdev}" | grep -q '^/dev/md'); then +if (echo "${bootdev}" | grep -q '[0-9]$') && [ "${raid_boot}" = "no" ]; 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 @@ -227,6 +235,10 @@ # root=${rootfs} +# This option may be needed for some software RAID installs. +# +${raid_extra_boot} + # Enable map compaction: # Tries to merge read requests for adjacent sectors into a single # read request. This drastically reduces load time and keeps the
Attachment:
signature.asc
Description: Digital signature