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

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



Your message dated Thu, 05 Jul 2007 22:47:07 +0000
with message-id <E1I6a6N-0005L0-L6@ries.debian.org>
and subject line Bug#426737: fixed in lilo-installer 1.23
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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.

I've also reported this bug at Ubuntu launchpad some time ago:
https://bugs.launchpad.net/ubuntu/+source/lilo-installer/+bug/103291

--leo

P.S.: Note that the patch only fixes installation in the MBR, installing
lilo in a partition would need further fixes.



--- lilo-installer.postinst.orig	2007-04-05 10:56:58.882464035 +0200
+++ lilo-installer.postinst	2007-04-05 11:03:42.144421696 +0200
@@ -53,14 +53,15 @@
 
 bootfs=$(mapdevfs $bootfs_devfs)
 
-prefix=$(echo "$bootfs_devfs" | sed 's/\(\/dev\/[a-z]\+\).*/\1/')
+prefix=$(echo "$bootfs_devfs" | \
+  sed 's/\(\/dev\/\(cciss\|ida\)\/c[0-9]d[0-9]\|\/dev\/[a-z]\+\).*/\1/')
 
 case $prefix in
 	/dev/md)
 		disc_offered_devfs="$bootfs_devfs"
 		db_register lilo-installer/bootdev_raid lilo-installer/bootdev
 	;;
-	/dev/[hs]d[a-z])
+	/dev/[hs]d[a-z]|/dev/cciss/c[0-9]d[0-9]|/dev/ida/c[0-9]d[0-9])
 		disc_offered_devfs="$prefix"
 	;;
 	*)
@@ -136,7 +137,8 @@
 
 # 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

--- End Message ---
--- Begin Message ---
Source: lilo-installer
Source-Version: 1.23

We believe that the bug you reported is fixed in the latest version of
lilo-installer, which is due to be installed in the Debian FTP archive:

lilo-installer_1.23.dsc
  to pool/main/l/lilo-installer/lilo-installer_1.23.dsc
lilo-installer_1.23.tar.gz
  to pool/main/l/lilo-installer/lilo-installer_1.23.tar.gz
lilo-installer_1.23_amd64.udeb
  to pool/main/l/lilo-installer/lilo-installer_1.23_amd64.udeb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 426737@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Frans Pop <fjp@debian.org> (supplier of updated lilo-installer package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 06 Jul 2007 00:09:58 +0200
Source: lilo-installer
Binary: lilo-installer
Architecture: source amd64
Version: 1.23
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Frans Pop <fjp@debian.org>
Description: 
 lilo-installer - Install LILO on a hard disk (udeb)
Closes: 426737
Changes: 
 lilo-installer (1.23) unstable; urgency=low
 .
   [ Robert Millan ]
   * Support HP SmartArray controllers (cciss / ida).  Patch from Alexander
     'Leo' Bergolth.  (Closes: #426737)
 .
   [ Updated translations ]
   * Punjabi (Gurmukhi) (pa.po) by A S Alam
   * Portuguese (pt.po) by Miguel Figueiredo
Files: 
 9aee3692dc6901532ca9bdf262dd887c 678 debian-installer standard lilo-installer_1.23.dsc
 b3b8b87bbf58f0b5ac534a47c1393537 92259 debian-installer standard lilo-installer_1.23.tar.gz
 6931de7f4ff1be2dc741a902deb6bb08 72916 debian-installer standard lilo-installer_1.23_amd64.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGjXJigm/Kwh6ICoQRAj1oAJwMXJiM7bV43DWDq5yxw3ZUciemugCcCWQc
svUV2VwiPjHLH4qeXBuX+wI=
=WxGf
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: