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

Bug#433579: marked as done (partman-dmraid: Error in logic determining if dmraid is supported)



Your message dated Sat, 1 Aug 2009 21:36:43 +0200
with message-id <200908012136.43998.elendil@planet.nl>
and subject line Bug#433579: partman-dmraid: Error in logic determining if dmraid is supported
has caused the Debian Bug report #433579,
regarding partman-dmraid: Error in logic determining if dmraid is supported
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
433579: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=433579
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: partman-dmraid
Version: 1
Severity: important

On some systems, dmraid -s -c will return "no block devices found" on 
stdout with an exit code of 0, and not "No RAID disks". This was seen on 
a system with cciss, so this is likely a condition that is hit before 
the "No RAID disks" condition (something like "no suitable controller 
detected").

Result of this issues is that incorrect paths are taken (as if dmraid 
devices were detected). It would be nice if dmraid would return a 
non-zero error code in those cases instead having to parse the output of 
the command...

This also affects:
- base-installer
- hw-detect
- partman-base
- grub-installer

One solution could be to run something like (assuming that no "%" would be 
used in error messages):
   dmraid -s -c r,t --sep "%" | grep "%" | cut -d% -f1
Command needs checking!

Note that we should also test for the exit code as dmraid _can_ exit 
non-zero! Example with /sys not mounted (the errors go to stderr!):
# dmraid -s
ERROR: opening path /sys/block
ERROR: failed to discover devices
# echo $?
1

Attachment: pgpn0Ayh2XzJu.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
After the release of Lenny dmraid was fixed to return an error code and 
its use in D-I has been updated to test for that.

See for example base-installer (1.99).

Therefore closing.


--- End Message ---

Reply to: