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#24969 - [mkinitcpio] blkid and duplicate label

Attached to Project: Arch Linux
Opened by Alexander Zubkov (green) - Thursday, 30 June 2011, 19:17 GMT
Last edited by Dave Reisner (falconindy) - Friday, 22 July 2011, 00:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Thomas Bächler (brain0)
Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version 2010.05
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

mkinitcpio generates init image with init_functions containig this:

device=$(blkid -t "$root" -o device)

But if I have multiple filesystems with same LABEL or UUID, then blkid would return all of them and it will break $device setting and leave system unbootable. Yes, I have to identical filesystems. I use them for backup purpose.

Example of calling blkid:

# blkid -t "LABEL=test" -o device
/dev/loop0
/dev/loop1

To fix this, one should add option "-l" to blkid:

# blkid -l -t "LABEL=test" -o device
/dev/loop1
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 22 July 2011, 00:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 0.7.1

Loading...