Bug#551551: live-initramfs: Sid/Squeeze hdd-usb partition not detected in KVM
Package: live-initramfs
Version: 1.157.4-1
I'm having a problem booting usb-hdd images I build of Squeeze / Sid in
the recent days (haven't tried for a while before that). I'm using
live-helper and live-initramfs from git.
Basically the initramfs loops endlessly trying to find the filesystem to
mount. Originally the symptom was the same as in in #547149 . As of
live-initramfs 1.157.4-1 that error message is gone. But it wasn't the
real issue anyway.
The first this to fix is:
--- a/scripts/live
+++ b/scripts/live
@@ -611,7 +611,7 @@ is_nice_device ()
{
sysfs_path="${1#/sys}"
- if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-[^-]*-(ide|scsi|usb))"
+ if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-)"
then
return 0
elif echo "${sysfs_path}" | grep -q '^/block/vd[a-z]$'
Without this /dev/hda1 will not be considered: /dev/hda will be
outright skipped.
This is because the output of /lib/udev/path_id has changed and seems to
no longer include the disk type. I hope this does not introduce any
false positives. See also
http://lists.debian.org/debian-live/2009/10/msg00061.html
Once I got over that I'm stuck with get_fstype from scripts/live-helpers
that fails to find the type. fstype does not seem to detect FAT
filesystems, but I guess that this is not anything new. /lib/udev/vol_id
is missing and hence the last resort '/lib/udev/vol_id -d ${1}' doesn't
help there either.
My build system is Lenny AMD64. My target system is i386:
live-initramfs: 1.157.4-1-2-gdd987ac
live-helper: 1.0.5-2-33-g2b8a748
Config options:
--arch i386
--linux-flavours 686
--syslinux-timeout 20
--distribution sid
--packages-lists xfce
--binary-images usb-hdd
--bootappend-live quiet
--apt-recommends disabled
Testing: Any of the following two:
kvm -hda binary.img
qemu -hda binary.img
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen@xorcom.com
+972-50-7952406 mailto:tzafrir.cohen@xorcom.com
http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
Reply to: