FS#18585 - [mkinitcpio] Silent error message: No medium found in autodetect hook
Attached to Project:
Arch Linux
Opened by Gerardo Exequiel Pozzi (djgera) - Saturday, 06 March 2010, 22:03 GMT
Last edited by Thomas Bächler (brain0) - Saturday, 12 February 2011, 02:01 GMT
Opened by Gerardo Exequiel Pozzi (djgera) - Saturday, 06 March 2010, 22:03 GMT
Last edited by Thomas Bächler (brain0) - Saturday, 12 February 2011, 02:01 GMT
|
Details
New blkid from util-linux-ng-2.17.1 show error messages from
removable devices without medium on it, like cdrom or 4-in-1
readers.
Additional info: mkinitcpio-0.6.3-1 util-linux-ng-2.17.1-1 |
This task depends upon
In this way, remove eval hacks and enviroments vars, just use blkid
syntax.
I guess in this way will fix/hide "command not found" when fstype
is not property setup in fs, reported by some users.
About the rest: I am against silencing errors. We should rather exclude removable devices from autodetection entirely.
about silent errors and removable media: yes, should remove sr0 and others. But require a better scan than a simple find -type b | exclude...
Unrelated change (but is around these lines): I guess function findfs should be renamed, there is a command findfs part of util-linux-ng. (to avoid confusion)
How about live Arch installation on a USB stick?
(1.a) Generating the initramfs image from an existing installation with removable media inserted, result in a initramfs image with modules needed for access to these removables mediums. (usb*, cd-rom, vfat, ...)
(2) If you are talking about archiso, scanning for removable media is unrelated on mkinitcpio step. There is no relation between scanning what removable mediums are on the machine that generates the archiso, and what modules will be on initramfs for archiso. (archiso does not use autodetect hook)
What if I run my system from a USB drive (in a normal read-write mode) _and_ update the kernel on that system, so initramfs image is regenerated and the system should still be able to boot (i.e. the modules for USB should be included).
The right solution is to look what device has / on it (which may be removable device), and ignore all other devices.