Package: disk-detect Version: 1.69 User: [EMAIL PROTECTED] Usertags: origin-ubuntu ubuntu-patch intrepid ubuntu
When disk-detect.sh attempts to activate dmraid arrays with "dmraid -ay", there is the potential for degraded arras to be activated. If Debian happens to be installed to such an array, this could worsen the array's state. Attached is a patch that uses the dmraid-activate script from the dmraid-udeb package to activate only arrays that don't appear to be degraded.
Index: disk-detect.sh =================================================================== --- disk-detect.sh (revision 55893) +++ disk-detect.sh (working copy) @@ -180,8 +180,10 @@ if [ "$(dmraid -c -s)" != "No RAID disks" ]; then logger -t disk-detect "Serial ATA RAID disk(s) detected; enabling dmraid support" - # Activate devices - log-output -t disk-detect dmraid -ay + # Activate only those arrays which have all disks present. + for dev in $(dmraid -r -c); do + log-output -t disk-detect dmraid-activate $dev + done else logger -t disk-detect "No Serial ATA RAID disks detected" fi
signature.asc
Description: Digital signature