Debian Bug report logs - #551551
support hdd-usb partition in KVM

version graph

Package: live-initramfs; Maintainer for live-initramfs is Debian Live Project <debian-live@lists.debian.org>;

Reported by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

Date: Sun, 18 Oct 2009 23:54:01 UTC

Severity: normal

Found in version live-initramfs/1.157.4-1

Fixed in version 1.157.4-2

Done: Daniel Baumann <daniel@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live@lists.debian.org>:
Bug#551551; Package live-initramfs. (Sun, 18 Oct 2009 23:54:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tzafrir Cohen <tzafrir.cohen@xorcom.com>:
New Bug report received and forwarded. Copy sent to Debian Live <debian-live@lists.debian.org>. (Sun, 18 Oct 2009 23:54:07 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
To: submit@bugs.debian.org
Subject: live-initramfs: Sid/Squeeze hdd-usb partition not detected in KVM
Date: Mon, 19 Oct 2009 01:50:22 +0200
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




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live@lists.debian.org>:
Bug#551551; Package live-initramfs. (Mon, 19 Oct 2009 16:57:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jean-Pierre Flori <jpflori@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Live <debian-live@lists.debian.org>. (Mon, 19 Oct 2009 16:57:08 GMT) Full text and rfc822 format available.

Message #10 received at 551551@bugs.debian.org (full text, mbox):

From: Jean-Pierre Flori <jpflori@gmail.com>
To: 551551@bugs.debian.org
Date: Mon, 19 Oct 2009 18:48:57 +0200
[Message part 1 (text/plain, inline)]
I can confirm the same problem on my system testing with qemu or VirtualBox.
"/lib/udev/path_id" reports a path without any "-scsi" or "-ide" so the main
partition (/dev/hda) is ignored by "is_nice_device" and the partition
(/dev/hda1) with the live system doesn't get checked in "find_livefs".

For the "/lib/udev/vol_id" issue, it's not included in udev anymore so
"/sbin/blockid" should be used instead.
In "/usr/share/initramfs-tool/scripts/live-helpers", "/lib/udev/vol_id
-[t|l]" should be replaced by something like "/sbin/blkid -s [TYPE|LABEL] -o
value" and in "/usr/share/initramfs-tool/scripts/live-bottom/12fstab"
"/lib/udev/vol_id" by "/sbin/blkid -o udev".
It seems to work on my system.

-- 
Jean-Pierre Flori
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Live <debian-live@lists.debian.org>:
Bug#551551; Package live-initramfs. (Wed, 21 Oct 2009 11:48:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tzafrir Cohen <tzafrir.cohen@xorcom.com>:
Extra info received and forwarded to list. Copy sent to Debian Live <debian-live@lists.debian.org>. (Wed, 21 Oct 2009 11:48:11 GMT) Full text and rfc822 format available.

Message #15 received at 551551@bugs.debian.org (full text, mbox):

From: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
To: Jean-Pierre Flori <jpflori@gmail.com>, 551551@bugs.debian.org
Subject: Re: Bug#551551:
Date: Wed, 21 Oct 2009 13:10:00 +0200
[Message part 1 (text/plain, inline)]
On Mon, Oct 19, 2009 at 06:48:57PM +0200, Jean-Pierre Flori wrote:

> For the "/lib/udev/vol_id" issue, it's not included in udev anymore so
> "/sbin/blockid" should be used instead.
> In "/usr/share/initramfs-tool/scripts/live-helpers", "/lib/udev/vol_id
> -[t|l]" should be replaced by something like "/sbin/blkid -s [TYPE|LABEL] -o
> value" and in "/usr/share/initramfs-tool/scripts/live-bottom/12fstab"
> "/lib/udev/vol_id" by "/sbin/blkid -o udev".
> It seems to work on my system.

Here's a simple fix along that line that forks for me. I didn't patch
live-bottom/12fstab yet, though.

-- 
               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
[551551_blkid.diff (text/x-diff, attachment)]

Changed Bug title to 'support hdd-usb partition in KVM' from 'live-initramfs: Sid/Squeeze hdd-usb partition not detected in KVM' Request was from Daniel Baumann <daniel@debian.org> to control@bugs.debian.org. (Mon, 01 Feb 2010 09:54:19 GMT) Full text and rfc822 format available.

Reply sent to daniel@debian.org:
You have taken responsibility. (Sun, 14 Mar 2010 22:00:04 GMT) Full text and rfc822 format available.

Notification sent to Tzafrir Cohen <tzafrir.cohen@xorcom.com>:
Bug acknowledged by developer. (Sun, 14 Mar 2010 22:00:04 GMT) Full text and rfc822 format available.

Message #22 received at 551551-done@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel@debian.org>
To: 551551-done@bugs.debian.org, 551551-submitter@bugs.debian.orgs
Subject: Re: support hdd-usb partition in KVM
Date: Sun, 14 Mar 2010 22:58:33 +0100
Version: 1.157.4-2

this has already been fixed in 1.157.4-2, closing.

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 12 Apr 2010 07:35:14 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 06:20:18 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.