Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5385 - Check for /dev/md? in rc.sysinit is incorrect

Attached to Project: Arch Linux
Opened by Alex Merry (pippin) - Sunday, 10 September 2006, 23:52 GMT
Last edited by Roman Kyrylych (Romashka) - Wednesday, 08 November 2006, 23:39 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The RAID setup code in rc.sysinit checks for the existence of RAID devices with the -f flag:
[ ! -f $path/$node ] && /bin/mknod $path/$node b 9 $minor

However, -f checks for regular files, and $path/$node will be a block device. So if initcpio assembles the raid device md0, a message will be printed to the effect that /dev/md0 exists.

The test should be -e instead:
[ ! -e $path/$node ] && /bin/mknod $path/$node b 9 $minor
This task depends upon

Closed by  Judd Vinet (judd)
Sunday, 12 November 2006, 23:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed for next build

Loading...