Bug#508906: [initramfs-tools] Doesn't detect LVM for root=/dev/dm-X

2008-12-17 Thread maximilian attems
On Tue, 16 Dec 2008, Eugene Paskevich wrote:

 Here is the /sys/block contents:

thanks indeed so your patch makes sense, applied it in slightly different
form to initramfs-tools repo. it is not release critical so i guess it
wont make it for lenny (if release happen soon :).
http://git.debian.org/?p=kernel/initramfs-tools.git;a=summary

kind regards

-- 
maks



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#508906: [initramfs-tools] Doesn't detect LVM for root=/dev/dm-X

2008-12-16 Thread maximilian attems
On Tue, Dec 16, 2008 at 04:37:01PM +0200, Eugene Paskevich wrote:
 Let me start with some additional relevant info.
 
 The root fs is located on LVM and is described in
 /etc/fstab with LABEL= notation, which leads
 to the following mount output for root filesystem:
 
  mount | grep on / 
 /dev/dm-0 on / type ext3 (rw,noatime,errors=remount-ro)

just as quick head on.
this seems pretty much related to #489008

haven't had the time yet to look at it, so patches are welcome :)
 
just uploaded 0.92m with bunch of fixes, so that one is on todo
for next days.

kind regards

-- 
maks



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#508906: [initramfs-tools] Doesn't detect LVM for root=/dev/dm-X

2008-12-16 Thread Eugene Paskevich

On Tue, 16 Dec 2008 17:19:31 +0200, maximilian attems m...@stro.at wrote:


On Tue, Dec 16, 2008 at 04:37:01PM +0200, Eugene Paskevich wrote:

Let me start with some additional relevant info.

The root fs is located on LVM and is described in
/etc/fstab with LABEL= notation, which leads
to the following mount output for root filesystem:

 mount | grep on / 
/dev/dm-0 on / type ext3 (rw,noatime,errors=remount-ro)


just as quick head on.
this seems pretty much related to #489008


Unfortunately, it's not really related to that bug.
My LABEL is ROOT, so no parsing problem.
On the other hand initramfs-tools rely on mount command output which doesn't 
show labels in my case.


haven't had the time yet to look at it, so patches are welcome :)


A simple patch in attachment did the trick.

--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix

dev_dm.patch
Description: Binary data


Bug#508906: [initramfs-tools] Doesn't detect LVM for root=/dev/dm-X

2008-12-16 Thread maximilian attems
On Tue, 16 Dec 2008, Eugene Paskevich wrote:


 Unfortunately, it's not really related to that bug.
 My LABEL is ROOT, so no parsing problem.
 On the other hand initramfs-tools rely on mount command output which doesn't 
 show labels in my case.

ah misunderstoody you, the bug description was totaly off.
what you were chasing is a MODULES=dep corner case.
right there more output from the box is needed, to start with:
ls /sys/block




-- 
maks



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#508906: [initramfs-tools] Doesn't detect LVM for root=/dev/dm-X

2008-12-16 Thread Eugene Paskevich

On Tue, 16 Dec 2008 18:39:06 +0200, maximilian attems m...@stro.at wrote:


On Tue, 16 Dec 2008, Eugene Paskevich wrote:



Unfortunately, it's not really related to that bug.
My LABEL is ROOT, so no parsing problem.
On the other hand initramfs-tools rely on mount command output which  
doesn't show labels in my case.


ah misunderstoody you, the bug description was totaly off.
what you were chasing is a MODULES=dep corner case.
right there more output from the box is needed, to start with:
ls /sys/block


Oh, indeed, sorry for not mentioning it.

Here is the /sys/block contents:


ls -l /sys/block/

total 0
drwxr-xr-x 5 root root 0 Dec 16 18:43 dm-0/
drwxr-xr-x 5 root root 0 Dec 16 18:43 dm-1/
drwxr-xr-x 6 root root 0 Dec 16 18:43 hda/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop0/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop1/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop2/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop3/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop4/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop5/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop6/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop7/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram0/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram1/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram10/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram11/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram12/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram13/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram14/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram15/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram2/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram3/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram4/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram5/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram6/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram7/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram8/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram9/
drwxr-xr-x 8 root root 0 Dec 16 18:43 sda/


--
Eugene Paskevich |   *==)---   | Plug me into
eug...@raptor.kiev.ua|   ---(==*   |  The Matrix



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#508906: [initramfs-tools] Doesn't detect LVM for root=/dev/dm-X

2008-12-16 Thread Eugene Paskevich
Package: initramfs-tools
Version: 0.92l
Severity: important

--- Please enter the report below this line. ---
Let me start with some additional relevant info.

The root fs is located on LVM and is described in
/etc/fstab with LABEL= notation, which leads
to the following mount output for root filesystem:

 mount | grep on / 
/dev/dm-0 on / type ext3 (rw,noatime,errors=remount-ro)

 e2label /dev/dm-0 
ROOT

The /dev/dm-0 itself isn't a symlink to /dev/mapper/, therefore root var
remains /dev/dm-0 after readlink -f attempt.

 ls -l /dev/dm-0
brw-rw 1 root disk 254, 0 Dec 15 15:46 /dev/dm-0

All this consequently leads to failure in detecting the LVM root.

Please let me know if any additional info is needed.

--- System information. ---
Architecture: i386
Kernel:   Linux 2.6.26-1-686

Debian Release: 5.0
  500 unstablewww.debian-multimedia.org 
  500 unstableftp.de.debian.org 
  500 unstabledebian.ejohansson.se 
  500 unstabledeb.opera.com 
  500 testing security.debian.org 

--- Package information. ---
Depends  (Version) | Installed
==-+-=
klibc-utils   (= 1.5.9-1) | 1.5.12-2
cpio   | 2.9-14
module-init-tools  | 3.4-1
udev  (= 0.086-1) | 0.125-7
findutils  (= 4.2.24) | 4.4.0-2

--- Output from package bug script ---
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-2.6.26-1-686 root=/dev/mapper/VG000-LV000 ro vga=773

-- /proc/filesystems
ext3

-- lsmod
Module  Size  Used by
nfs   213896  2 
lockd  54248  1 nfs
nfs_acl 2912  1 nfs
sunrpc162144  15 nfs,lockd,nfs_acl
i915   25280  2 
drm65256  3 i915
autofs416420  1 
ipv6  235300  29 
rfkill_input3520  0 
loop   12748  0 
ide_cd_mod 27652  0 
cdrom  30176  1 ide_cd_mod
ata_generic 4676  0 
arc41824  2 
usbhid 35904  0 
ecb 2624  2 
crypto_blkcipher   15236  1 ecb
hid33184  1 usbhid
ff_memless  4392  1 usbhid
b43   110748  0 
rfkill  5652  3 rfkill_input,b43
rng_core3940  1 b43
mac80211  139680  1 b43
hci_usb12252  0 
bluetooth  44900  1 hci_usb
cfg80211   21576  1 mac80211
led_class   3908  1 b43
joydev  8480  0 
input_polldev   3752  1 b43
piix6568  0 [permanent]
snd_hda_intel 324248  0 
snd_pcm_oss32800  0 
snd_pcm62596  2 snd_hda_intel,snd_pcm_oss
snd_mixer_oss  12320  1 snd_pcm_oss
pcspkr  2432  0 
ide_pci_generic 3908  0 [permanent]
serio_raw   4740  0 
psmouse32336  0 
ide_core   96168  3 ide_cd_mod,piix,ide_pci_generic
ssb33476  1 b43
snd_seq_dummy   2660  0 
pcmcia 29548  2 b43,ssb
pcmcia_core31892  3 b43,ssb,pcmcia
iTCO_wdt9508  0 
snd_seq_oss24992  0 
firmware_class  6816  2 b43,pcmcia
snd_seq_midi_event  6432  1 snd_seq_oss
snd_seq41456  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_timer  17800  2 snd_pcm,snd_seq
snd_seq_device  6380  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd45604  8 
snd_hda_intel,snd_pcm_oss,snd_pcm,snd_mixer_oss,snd_seq_oss,snd_seq,snd_timer,snd_seq_device
soundcore   6368  1 snd
container   3456  0 
uhci_hcd   18672  0 
snd_page_alloc  7816  2 snd_hda_intel,snd_pcm
ehci_hcd   28428  0 
e1000e 84612  0 
battery10180  0 
wmi 6440  0 
ac  4196  0 
usbcore   118160  5 usbhid,hci_usb,uhci_hcd,ehci_hcd
button  6096  0 
intel_agp  22332  1 
agpgart28776  3 drm,intel_agp
evdev   8000  0 
ext3  105512  2 
jbd39444  1 ext3
mbcache 7108  1 ext3
dm_mirror  15104  0 
dm_log  8452  1 dm_mirror
dm_snapshot14340  0 
dm_mod 46184  8 dm_mirror,dm_log,dm_snapshot
sd_mod 22200  3 
thermal15228  0 
processor  32576  3 thermal
fan 4164  0 
thermal_sys10856  3 thermal,processor,fan
ahci   23176  2 
libata140384  2 ata_generic,ahci
scsi_mod  129356  2 sd_mod,libata
dock8304  1 libata

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links =