Package: grub-common; Maintainer for grub-common is GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>; Source for grub-common is src:grub2 (PTS, buildd, popcon).
Reported by: "Stefan Lippers-Hollmann" <s.L-H@gmx.de>
Date: Wed, 19 Aug 2009 16:15:02 UTC
Severity: important
Found in version grub2/1.96+20090808-1
Done: "Stefan Lippers-Hollmann" <s.L-H@gmx.de>
Bug is archived. No further changes may be made.
View this report as an mbox folder, status mbox, maintainer mbox
Report forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#542435; Package grub-common.
(Wed, 19 Aug 2009 16:15:08 GMT) (full text, mbox, link).
Acknowledgement sent
to "Stefan Lippers-Hollmann" <s.L-H@gmx.de>:
New Bug report received and forwarded. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Wed, 19 Aug 2009 16:15:08 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: grub-common
Version: 1.96+20090808-1
Severity: important
Hi
Since 2.02.51-1 (17 Aug 2009), lvm2 depends on dmsetup, which ships a few
udev rules:
/lib/udev/rules.d/55-dm.rules
/lib/udev/rules.d/60-persistent-storage-dm.rules
/lib/udev/rules.d/95-dm-notify.rules
Trying to call grub-probe (indirectly through grub-install or update-grub)
on a kernel whose initramfs includes these udev rules results in grub-probe
failing to find the / "partition" (a logical volume on LVM2):
# grub-probe --target=device /
grub-probe: error: cannot find a device for /.
This failure breaks installing grub2 on a pure LVM2 system and renders an
installed system (which has always been working fine for me) on LVM2
unbootable, as soon as dmsetup and its udev rules enter the initramfs and
when update-grub gets invoked by installing kernel updates.
Deleting dmsetup's udev rules and regenerating the initramfs makes
grub-probe working again.
I am reliably experiencing this problem, which renders the affectable
systems unbootable on initramfs changes or kernel updates, on 3 systems
using ext3 and ext4 for / since dmsetup got pulled in by lvm2. It is
independent of the installed kernel version (2.6.29 - 2.6.31-rc6-git5)
Please feel free to reassign to dmsetup (lvm2), but I assume grub-probe
simply can't interpret the mangled udev representation since dmsetup got
installed.
Regards
Stefan Lippers-Hollmann
$ grep -v -e ^\# -e ^$ /etc/fstab
/dev/sputnik/debian64 / ext4 defaults,noatime,barrier=0 1 1
/dev/sputnik/swap none swap defaults 0 0
/dev/sputnik/var /var ext4 auto,user,exec,dev,noatime,barrier=0 1 2
/var/tmp /tmp none bind 0 0
/dev/sputnik/home /home ext4 auto,user,exec,nodev,nosuid,noatime,barrier=0 1 2
$ grep -v -e ^\# -e ^$ /boot/grub/grub.cfg
set default=0
set timeout=3
insmod lvm
set root=(sputnik-debian64)
search --no-floppy --fs-uuid --set aed1da63-079a-4a29-9f17-042b49a96b05
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
insmod gfxterm
insmod vbe
if terminal_output.gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
menuentry "Debian GNU/Linux, Linux 2.6.31-rc6-sidux-amd64" {
insmod lvm
set root=(sputnik-debian64)
search --no-floppy --fs-uuid --set aed1da63-079a-4a29-9f17-042b49a96b05
linux /boot/vmlinuz-2.6.31-rc6-sidux-amd64 root=/dev/mapper/sputnik-debian64 ro vga=791
initrd /boot/initrd.img-2.6.31-rc6-sidux-amd64
}
# fdisk -l /dev/sda
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9a2f4815
Device Boot Start End Blocks Id System
/dev/sda1 * 1 19457 156288321 8e Linux LVM
# lvdisplay
--- Logical volume ---
LV Name /dev/sputnik/debian64
VG Name sputnik
LV UUID 2bOCSD-J1GH-rl6I-ZkqM-Mxlb-X6ip-OIDzvU
LV Write Access read/write
LV Status available
# open 1
LV Size 10,00 GB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
--- Logical volume ---
LV Name /dev/sputnik/var
VG Name sputnik
LV UUID DEGVDG-Uk35-cDFx-pcEp-ZmA0-Kqdi-wuMz2w
LV Write Access read/write
LV Status available
# open 1
LV Size 5,00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Logical volume ---
LV Name /dev/sputnik/swap
VG Name sputnik
LV UUID 1OfAMK-bxZ9-lgak-nKwk-0SxX-tGaT-VOq6hZ
LV Write Access read/write
LV Status available
# open 1
LV Size 4,00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
--- Logical volume ---
LV Name /dev/sputnik/home
VG Name sputnik
LV UUID XQ9Sx6-f2TY-U3WJ-X4fT-dYbQ-yGqS-NBHKcE
LV Write Access read/write
LV Status available
# open 1
LV Size 10,00 GB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:3
=== NOT working, with dmsetup udev rules ===
# grub-probe --target=device /
grub-probe: error: cannot find a device for /.
# grub-probe --target=device / -v
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: changing current directory to /dev
grub-probe: info: changing current directory to dri
grub-probe: info: changing current directory to snd
grub-probe: info: changing current directory to net
grub-probe: info: changing current directory to shm
grub-probe: info: changing current directory to network
grub-probe: info: changing current directory to pts
grub-probe: info: changing current directory to sputnik
grub-probe: info: changing current directory to mapper
grub-probe: info: changing current directory to disk
grub-probe: info: changing current directory to by-label
grub-probe: info: changing current directory to by-uuid
grub-probe: info: changing current directory to by-path
grub-probe: info: changing current directory to by-id
grub-probe: info: changing current directory to block
grub-probe: info: changing current directory to bsg
grub-probe: info: changing current directory to bus
grub-probe: info: changing current directory to usb
grub-probe: info: changing current directory to 004
grub-probe: info: changing current directory to 003
grub-probe: info: changing current directory to 005
grub-probe: info: changing current directory to 002
grub-probe: info: changing current directory to 001
grub-probe: info: changing current directory to input
grub-probe: info: changing current directory to by-path
grub-probe: info: changing current directory to char
grub-probe: error: cannot find a device for /.
# grub-probe --target=device / -vvv
/tmp/buildd/grub2-1.96+20090808/disk/raid.c:627: Scanning for RAID devices on disk hd0
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0'.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting gpt_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: gpt_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting sun_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: sun_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting apple_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: apple_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting pc_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:117: pc_partition_map detection succeeded.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0'.
/tmp/buildd/grub2-1.96+20090808/disk/raid.c:627: Scanning for RAID devices on disk hd0,1
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0,1'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0,1'.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0'.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting gpt_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: gpt_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting sun_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: sun_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting apple_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: apple_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting pc_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:117: pc_partition_map detection succeeded.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0'.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0,1'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0,1'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0,1'.
grub-probe: info: changing current directory to /dev
grub-probe: info: changing current directory to dri
grub-probe: info: changing current directory to snd
grub-probe: info: changing current directory to net
grub-probe: info: changing current directory to shm
grub-probe: info: changing current directory to network
grub-probe: info: changing current directory to pts
grub-probe: info: changing current directory to sputnik
grub-probe: info: changing current directory to mapper
grub-probe: info: changing current directory to disk
grub-probe: info: changing current directory to by-label
grub-probe: info: changing current directory to by-uuid
grub-probe: info: changing current directory to by-path
grub-probe: info: changing current directory to by-id
grub-probe: info: changing current directory to block
grub-probe: info: changing current directory to bsg
grub-probe: info: changing current directory to bus
grub-probe: info: changing current directory to usb
grub-probe: info: changing current directory to 004
grub-probe: info: changing current directory to 003
grub-probe: info: changing current directory to 005
grub-probe: info: changing current directory to 002
grub-probe: info: changing current directory to 001
grub-probe: info: changing current directory to input
grub-probe: info: changing current directory to by-path
grub-probe: info: changing current directory to char
grub-probe: error: cannot find a device for /.
=== working, without dmsetup udev rules ===
# rm /lib/udev/rules.d/55-dm.rules \
/lib/udev/rules.d/60-persistent-storage-dm.rules \
/lib/udev/rules.d/95-dm-notify.rules
# update-initramfs -k $(uname -r) -d
# update-initramfs -k $(uname -r) -c
# reboot
===========================================
# grub-probe --target=device /
/dev/mapper/sputnik-debian64
# grub-probe --target=device / -v
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: changing current directory to /dev
grub-probe: info: changing current directory to dri
grub-probe: info: changing current directory to snd
grub-probe: info: changing current directory to net
grub-probe: info: changing current directory to shm
grub-probe: info: changing current directory to network
grub-probe: info: changing current directory to pts
grub-probe: info: changing current directory to sputnik
grub-probe: info: changing current directory to mapper
/dev/mapper/sputnik-debian64
# grub-probe --target=device / -vvv
/tmp/buildd/grub2-1.96+20090808/disk/raid.c:627: Scanning for RAID devices on disk hd0
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0'.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting gpt_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: gpt_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting sun_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: sun_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting apple_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: apple_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting pc_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:117: pc_partition_map detection succeeded.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0'.
/tmp/buildd/grub2-1.96+20090808/disk/raid.c:627: Scanning for RAID devices on disk hd0,1
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0,1'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0,1'.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0'.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting gpt_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: gpt_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting sun_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: sun_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting apple_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:112: apple_partition_map detection failed.
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:106: Detecting pc_partition_map...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/kern/partition.c:117: pc_partition_map detection succeeded.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0'.
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0,1'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/util/hostdisk.c:342: opening the device `/dev/sda1' in open_device()/tmp/buildd/grub2-1.96+20090808/kern/disk.c:245: Opening `hd0,1'...
grub-probe: info: the size of hd0 is 312581808
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:389: Reading `hd0,1'...
/tmp/buildd/grub2-1.96+20090808/partmap/pc.c:143: partition 0: flag 0x80, type 0x8e, start 0x3f, len 0x12a18a82
/tmp/buildd/grub2-1.96+20090808/kern/disk.c:333: Closing `hd0,1'.
grub-probe: info: changing current directory to /dev
grub-probe: info: changing current directory to dri
grub-probe: info: changing current directory to snd
grub-probe: info: changing current directory to net
grub-probe: info: changing current directory to shm
grub-probe: info: changing current directory to network
grub-probe: info: changing current directory to pts
grub-probe: info: changing current directory to sputnik
grub-probe: info: changing current directory to mapper
/dev/mapper/sputnik-debian64
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-rc6-sidux-amd64 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages grub-common depends on:
ii base-files 5.0.0 Debian base system miscellaneous f
ii libc6 2.9-25 GNU C Library: Shared libraries
ii libfreetype6 2.3.9-5 FreeType 2 font engine, shared lib
ii libncurses5 5.7+20090803-1 shared libraries for terminal hand
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
grub-common recommends no packages.
Versions of packages grub-common suggests:
pn multiboot-doc <none> (no description available)
pn os-prober <none> (no description available)
-- no debconf information
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#542435; Package grub-common.
(Wed, 19 Aug 2009 18:33:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Felix Zielcke <fzielcke@z-51.de>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Wed, 19 Aug 2009 18:33:05 GMT) (full text, mbox, link).
Message #10 received at 542435@bugs.debian.org (full text, mbox, reply):
Am Mittwoch, den 19.08.2009, 18:12 +0200 schrieb Stefan Lippers-Hollmann: > Package: grub-common > Version: 1.96+20090808-1 > Severity: important > > Hi > > Since 2.02.51-1 (17 Aug 2009), lvm2 depends on dmsetup, which ships a few > udev rules: > > /lib/udev/rules.d/55-dm.rules > /lib/udev/rules.d/60-persistent-storage-dm.rules > /lib/udev/rules.d/95-dm-notify.rules > > Trying to call grub-probe (indirectly through grub-install or update-grub) > on a kernel whose initramfs includes these udev rules results in grub-probe > failing to find the / "partition" (a logical volume on LVM2): > > # grub-probe --target=device / > grub-probe: error: cannot find a device for /. > > This failure breaks installing grub2 on a pure LVM2 system and renders an > installed system (which has always been working fine for me) on LVM2 > unbootable, as soon as dmsetup and its udev rules enter the initramfs and > when update-grub gets invoked by installing kernel updates. > > Deleting dmsetup's udev rules and regenerating the initramfs makes > grub-probe working again. > > I am reliably experiencing this problem, which renders the affectable > systems unbootable on initramfs changes or kernel updates, on 3 systems > using ext3 and ext4 for / since dmsetup got pulled in by lvm2. It is > independent of the installed kernel version (2.6.29 - 2.6.31-rc6-git5) > Please feel free to reassign to dmsetup (lvm2), but I assume grub-probe > simply can't interpret the mangled udev representation since dmsetup got > installed. > Are the /dev/mapper/* files still created or are there now just the /dev/vg/lv ones? grub-probe only supports the /dev/mapper/ ones.
Information forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#542435; Package grub-common.
(Wed, 19 Aug 2009 19:03:10 GMT) (full text, mbox, link).
Acknowledgement sent
to "Stefan Lippers-Hollmann" <s.L-H@gmx.de>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Wed, 19 Aug 2009 19:03:10 GMT) (full text, mbox, link).
Message #15 received at 542435@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi On Wednesday 19 August 2009, Felix Zielcke wrote: > Am Mittwoch, den 19.08.2009, 18:12 +0200 schrieb Stefan > Lippers-Hollmann: [...] > > Since 2.02.51-1 (17 Aug 2009), lvm2 depends on dmsetup, which ships a few > > udev rules: > > > > /lib/udev/rules.d/55-dm.rules > > /lib/udev/rules.d/60-persistent-storage-dm.rules > > /lib/udev/rules.d/95-dm-notify.rules > > > > Trying to call grub-probe (indirectly through grub-install or update-grub) > > on a kernel whose initramfs includes these udev rules results in grub-probe > > failing to find the / "partition" (a logical volume on LVM2): > > > > # grub-probe --target=device / > > grub-probe: error: cannot find a device for /. > > > > This failure breaks installing grub2 on a pure LVM2 system and renders an > > installed system (which has always been working fine for me) on LVM2 > > unbootable, as soon as dmsetup and its udev rules enter the initramfs and > > when update-grub gets invoked by installing kernel updates. > > > > Deleting dmsetup's udev rules and regenerating the initramfs makes > > grub-probe working again. > > > > I am reliably experiencing this problem, which renders the affectable > > systems unbootable on initramfs changes or kernel updates, on 3 systems > > using ext3 and ext4 for / since dmsetup got pulled in by lvm2. It is > > independent of the installed kernel version (2.6.29 - 2.6.31-rc6-git5) > > Please feel free to reassign to dmsetup (lvm2), but I assume grub-probe > > simply can't interpret the mangled udev representation since dmsetup got > > installed. > > > > Are the /dev/mapper/* files still created or are there now just > the /dev/vg/lv ones? > grub-probe only supports the /dev/mapper/ ones. === working, without dmsetup udev rules === $ ls -al /dev/mapper/ /dev/sputnik/ /dev/mapper/: insgesamt 0 drwxr-xr-x 2 root root 140 19. Aug 20:52 . drwxr-xr-x 17 root root 2880 19. Aug 20:52 .. crw-rw---- 1 root root 10, 60 19. Aug 2009 control brw-rw---- 1 root disk 254, 0 19. Aug 2009 sputnik-debian64 brw-rw---- 1 root disk 254, 3 19. Aug 20:52 sputnik-home brw-rw---- 1 root disk 254, 2 19. Aug 20:52 sputnik-swap brw-rw---- 1 root disk 254, 1 19. Aug 20:52 sputnik-var /dev/sputnik/: insgesamt 0 drwxr-xr-x 2 root root 120 19. Aug 20:52 . drwxr-xr-x 17 root root 2880 19. Aug 20:52 .. lrwxrwxrwx 1 root root 28 19. Aug 2009 debian64 -> /dev/mapper/sputnik-debian64 lrwxrwxrwx 1 root root 24 19. Aug 20:52 home -> /dev/mapper/sputnik-home lrwxrwxrwx 1 root root 24 19. Aug 20:52 swap -> /dev/mapper/sputnik-swap lrwxrwxrwx 1 root root 23 19. Aug 20:52 var -> /dev/mapper/sputnik-var # grub-probe --target=device / /dev/mapper/sputnik-debian64 === NOT working, with dmsetup udev rules === $ ls -al /dev/mapper/ /dev/sputnik/ /dev/mapper/: insgesamt 0 drwxr-xr-x 2 root root 140 19. Aug 20:56 . drwxr-xr-x 17 root root 2860 19. Aug 20:57 .. crw-rw---- 1 root root 10, 60 19. Aug 2009 control lrwxrwxrwx 1 root root 7 19. Aug 2009 sputnik-debian64 -> ../dm-0 lrwxrwxrwx 1 root root 7 19. Aug 20:56 sputnik-home -> ../dm-3 lrwxrwxrwx 1 root root 7 19. Aug 20:56 sputnik-swap -> ../dm-2 lrwxrwxrwx 1 root root 7 19. Aug 20:56 sputnik-var -> ../dm-1 /dev/sputnik/: insgesamt 0 drwxr-xr-x 2 root root 120 19. Aug 20:56 . drwxr-xr-x 17 root root 2860 19. Aug 20:57 .. lrwxrwxrwx 1 root root 7 19. Aug 2009 debian64 -> ../dm-0 lrwxrwxrwx 1 root root 7 19. Aug 20:56 home -> ../dm-3 lrwxrwxrwx 1 root root 7 19. Aug 20:56 swap -> ../dm-2 lrwxrwxrwx 1 root root 7 19. Aug 20:56 var -> ../dm-1 # grub-probe --target=device / grub-probe: error: cannot find a device for /. Regards Stefan Lippers-Hollmann
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#542435; Package grub-common.
(Wed, 19 Aug 2009 19:15:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Felix Zielcke <fzielcke@z-51.de>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Wed, 19 Aug 2009 19:15:06 GMT) (full text, mbox, link).
Message #20 received at 542435@bugs.debian.org (full text, mbox, reply):
Am Mittwoch, den 19.08.2009, 21:01 +0200 schrieb Stefan Lippers-Hollmann: > === NOT working, with dmsetup udev rules === > > $ ls -al /dev/mapper/ /dev/sputnik/ > /dev/mapper/: > insgesamt 0 > drwxr-xr-x 2 root root 140 19. Aug 20:56 . > drwxr-xr-x 17 root root 2860 19. Aug 20:57 .. > crw-rw---- 1 root root 10, 60 19. Aug 2009 control > lrwxrwxrwx 1 root root 7 19. Aug 2009 sputnik-debian64 -> ../dm-0 > lrwxrwxrwx 1 root root 7 19. Aug 20:56 sputnik-home -> ../dm-3 > lrwxrwxrwx 1 root root 7 19. Aug 20:56 sputnik-swap -> ../dm-2 > lrwxrwxrwx 1 root root 7 19. Aug 20:56 sputnik-var -> ../dm-1 > This just can't work with the way how grub-probe currently works. stat() is used to map the filesystem paths to devices. So in that case it uses the /dev/dm-* ones instead of the /dev/mapper/* But grub-probe generates the (vg-lv) grub device from the file name and then looks for all LVM headers if there is such a volumegroup and logical volume. It would be easier to fix in lvm2 package but because this is an upstream change of it we need to adress this in grub-probe. But I fail to get an idea how to fix this.
Reply sent
to "Stefan Lippers-Hollmann" <s.L-H@gmx.de>:
You have taken responsibility.
(Fri, 21 Aug 2009 03:27:04 GMT) (full text, mbox, link).
Notification sent
to "Stefan Lippers-Hollmann" <s.L-H@gmx.de>:
Bug acknowledged by developer.
(Fri, 21 Aug 2009 03:27:04 GMT) (full text, mbox, link).
Message #25 received at 542435-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi On Friday 21 August 2009, Felix Zielcke wrote: > Am Mittwoch, den 19.08.2009, 21:01 +0200 schrieb Stefan > Lippers-Hollmann: > > > === NOT working, with dmsetup udev rules === > > > > $ ls -al /dev/mapper/ /dev/sputnik/ > > /dev/mapper/: > > insgesamt 0 > > drwxr-xr-x 2 root root 140 19. Aug 20:56 . > > drwxr-xr-x 17 root root 2860 19. Aug 20:57 .. > > crw-rw---- 1 root root 10, 60 19. Aug 2009 control > > lrwxrwxrwx 1 root root 7 19. Aug 2009 sputnik-debian64 -> ../dm-0 > > lrwxrwxrwx 1 root root 7 19. Aug 20:56 sputnik-home -> ../dm-3 > > lrwxrwxrwx 1 root root 7 19. Aug 20:56 sputnik-swap -> ../dm-2 > > lrwxrwxrwx 1 root root 7 19. Aug 20:56 sputnik-var -> ../dm-1 > > > > This just can't work with the way how grub-probe currently works. > stat() is used to map the filesystem paths to devices. > So in that case it uses the /dev/dm-* ones instead of the /dev/mapper/* > But grub-probe generates the (vg-lv) grub device from the file name and > then looks for all LVM headers if there is such a volumegroup and > logical volume. > > It would be easier to fix in lvm2 package but because this is an > upstream change of it we need to adress this in grub-probe. > But I fail to get an idea how to fix this. This is now fixed with lvm2 (2.02.51-2) unstable; urgency=low * Make mapper/* the real device, dm-* a symlink. (closes: #542422) -- Bastian Blank <waldi@debian.org> Thu, 20 Aug 2009 21:23:14 +0200 Sorry about the noise - and I just hope dmsetup keeps its device nodes this way. Regards Stefan Lippers-Hollmann
[signature.asc (application/pgp-signature, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 18 Sep 2009 07:32:45 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.