Release Engineering

Tasklist

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
Task Type Feature Request
Category ArchISO
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version 2009.02
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Simo Leone (neotuli) - Friday, 20 June 2008, 07:36 GMT
While this is a simple change, I'm kind of fuzzy on when it'd be useful to use a CD to boot another medium.
Comment by Aaron Griffin (phrakture) - Friday, 20 June 2008, 16:23 GMT
I think the root of this report is that the boot-cd hook doesn't load USB modules for external USB drives. I could have swore it did add them (USB and firewire modules), as that use-case is very common with recent laptops.
Comment by Simo Leone (neotuli) - Tuesday, 24 June 2008, 02:47 GMT
You did add them.
Comment by Zdenek Pavlas (zde) - Tuesday, 24 June 2008, 07:37 GMT
> I'm kind of fuzzy on when it'd be useful to use a CD to boot another medium.

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).
Comment by Aaron Griffin (phrakture) - Saturday, 24 January 2009, 23:30 GMT
Should be fixed on newest ISOs

Loading...