FS#10632 - merge .iso and .img distribution files
Attached to Project:
Release Engineering
Opened by Zdenek Pavlas (zde) - Wednesday, 11 June 2008, 11:37 GMT
Last edited by Aaron Griffin (phrakture) - Sunday, 25 January 2009, 02:09 GMT
Opened by Zdenek Pavlas (zde) - Wednesday, 11 June 2008, 11:37 GMT
Last edited by Aaron Griffin (phrakture) - Sunday, 25 January 2009, 02:09 GMT
|
Details
Description:
Some people want to install from USB-HDDs instead of CD-ROMs. I've noticed that there's now .IMG file available for this purpose. While .ISO contains /hook/boot-cd, .IMG contains /hook/boot-usb to detect and mount the boot media. This works, but having support for USB-HDD boot in the "default" .ISO would be nice still, for many reasons (simplicity, users confused by two images instead of one, storage/bandwidth issues, the need to kill a whole partition with .IMGs, etc). With the current arch-core-install-2008.04-rc-i686.iso/boot/archlive.img initrd, it's impossible to boot from USB-HDD, because the boot-cd hook does not find the USB-HDD. Patching and rebuilding initrd image is a much more complex task than just copying few files to USB stick and running syslinux on it, so I think we should do it beforehand (see patch). Make finding of the booted device more robust by including FAT-formatted USB HDDs. --- boot-cd.orig 2008-06-11 12:07:08.000000000 +0200 +++ boot-cd 2008-06-11 12:12:33.000000000 +0200 @@ -13,8 +13,14 @@ found=0 /bin/modprobe -q isofs >/dev/null 2>&1 - for cdrom in /dev/cd/*; do - if mount -r -t iso9660 "${cdrom}" ${bootmnt} >/dev/null 2>&1; then + fstype=iso9660 + for cdrom in /dev/cd/* fat /dev/sd*; do + if [ $cdrom = fat ]; then + /bin/modprobe -q vfat >/dev/null 2>&1 + fstype=vfat + continue + fi + if mount -r -t $fstype "${cdrom}" ${bootmnt} >/dev/null 2>&1; then if [ -e "${bootmnt}/archlive.sqfs" ]; then found=1 msg "${cdrom}" |
This task depends upon
Closed by Aaron Griffin (phrakture)
Sunday, 25 January 2009, 02:09 GMT
Reason for closing: Implemented
Additional comments about closing: The same hook is used for ISO and USB booting now
Sunday, 25 January 2009, 02:09 GMT
Reason for closing: Implemented
Additional comments about closing: The same hook is used for ISO and USB booting now
It's not another medium. You copy files from .ISO to USB-HDD and boot off it, so there's no CD.
> I think the root of this report is that the boot-cd hook doesn't load USB modules for external USB drives.
No, USB modules are ok and kernel knows about the USB drive. The only problem is that boot-cd hook does not mount it and kabooms. The result is that the old and tried http://wiki.archlinux.org/index.php/Install_from_USB_stick does not work (see my post in discussion).