FS#13053 - Do not mount all filesystem while looking for the ArchISO image
Attached to Project:
Release Engineering
Opened by Thomas Bächler (brain0) - Friday, 30 January 2009, 18:25 GMT
Last edited by Gerhard Brauer (GerBra) - Thursday, 30 July 2009, 06:03 GMT
Opened by Thomas Bächler (brain0) - Friday, 30 January 2009, 18:25 GMT
Last edited by Gerhard Brauer (GerBra) - Thursday, 30 July 2009, 06:03 GMT
|
Details
Right now, we mount each and every filesystem to find the
ArchISO image. Then we look for a IMO too generic filename
in the root directory.
We should have a way to detect the right filesystem with some "magic number" without mounting it. I don't know how that would be possible (maybe parse filesystem labels, or hack something into the UUID). Suggestions? |
This task depends upon
Closed by Gerhard Brauer (GerBra)
Thursday, 30 July 2009, 06:03 GMT
Reason for closing: Implemented
Additional comments about closing: 2009.08-beta1 comes with a new method to detect and mount the boot devices on cd iso and usb images.
Thursday, 30 July 2009, 06:03 GMT
Reason for closing: Implemented
Additional comments about closing: 2009.08-beta1 comes with a new method to detect and mount the boot devices on cd iso and usb images.
How about using a label AND scanning for the filename, it would not only reduce the need to mount so much, but also still work if the user happens to have a partition labeled "archiso2009.01" or something :)
This could be implemented to 2009.08 release...
1) Change udev rules in klibc-udev not to ignore CD devices when detecting the label.
2) Append a generated label to the default cmdline in the grub configuration and at the same time, use that label for the ext2/isofs.
3) Change the mount code to do something like this:
TIMEOUT=60
DEVICE=/dev/disk/by-label/ARCH-ABC123
while ! poll_device ${DEVICE] ${TIMEOUT}; do
echo "The archiso image could not be found. Please fix the problem and log out to try again."
/bin/sh -i
done
mount ${DEVICE} /whereever
The poll_device function is part of mkinitcpio. If anyone can do this faster than me, feel free to do so.
FS#10831?FS#10831wants to put the files in a subdirectory on the stick.