[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#426737: lilo-installer fails on HP SmartArray controllers (/dev/ida)

On Wed, May 30, 2007 at 06:36:11PM +0200, Alexander 'Leo' Bergolth wrote:
> Package: lilo-installer
> Version: 1.20
> During installation of Debian Etch, lilo-installer fails when using
> /dev/ida/c0d0 (Compaq/HP SmartArray) as boot/root device.
> The reason are some checks in lilo-installer.postinst that assume that
> the device has to look like /dev/[hs]d[a-z].
> However, SmartArray controllers use device-names like /dev/ida/c0d0
> (/dev/cciss/c0d0 on Ubuntu) and partition names like /dev/ida/c0d0p1 (or
> /dev/cciss/c0d0p1).
> The attached patch fixes this issue.

Thank you.  I checked this in svn.  However...

> P.S.: Note that the patch only fixes installation in the MBR, installing
> lilo in a partition would need further fixes.
> [...]
>  # 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]$') && [ "${raid_boot}" = "no" ]; then
> +if (echo "${bootdev}" | grep -v '/c[0-9]d[0-9]$' | 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\|[hs]d[a-z]\)${part} " | grep -q '\*'; then
>          # partition is not marked active, offer to make it so

This "grep -v '/c[0-9]d[0-9]$'" does indeed seem to break cciss / ida
partitions.  Why did you add it?

Robert Millan

My spam trap is honeypot@aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.

Reply to: