Hi,

I've just been trying to make debian-live boot from a USB stick. After a
small patch to casper this seems to be working.

My naive approach was to take FAT-formatted stick, copy on to it
everything from the ISO image from live.debian.net, and run syslinux.

Modulo a BIOS update to fix up USB boot support, boot from the stick
started off pretty promising but died in casper.

The problem is that /lib/udev/path_id returns output in a different
format to that expected by the script, viz:

$ /lib/udev/path_id /sys/block/sda
ID_PATH=pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0

To fix this, I applied the attached patch to casper.

cheers,

Malcolm
*** casper-old	Sun Jul 16 09:34:05 2006
--- casper	Sun Jul 16 09:13:20 2006
***************
*** 199,205 ****
  
  is_usb_device() {
  	sysfs_path="${1#/sys}"
! 	if /lib/udev/path_id "${sysfs_path}" | grep -q "ID_PATH=usb"; then
  		return 0
  	fi
  	return 1
--- 199,205 ----
  
  is_usb_device() {
  	sysfs_path="${1#/sys}"
! 	if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-[^-]*-usb)"; then
  		return 0
  	fi
  	return 1
_______________________________________________
Debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

Reply via email to