Bug#575498: initramfs-tools: LVM doesn't start when using Labels in grub as rootlocation
Package: initramfs-tools
Version: 0.93.4
Severity: normal
Hello,
I'm using in my grub configuration Labels to point out, where my Rootfs
is located.
This looks like # kopt=root=LABEL=ROOT ro
When the vlm2 initramfs-tools script runs this is translated so that
$ROOT is something like /dev/disk/by-label/ROOT
The script don't activates the vg's so that my root-fs is missing.
I have in the switch statement in the activate_vg function the following
lines appended and now it works (for me):
Kernel: Linux 2.6.32-3-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initramfs-tools depends on:
ii cpio 2.11-1 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1 utilities for finding files--find,
ii klibc-utils 1.5.15-1 small utilities built with klibc f
ii module-init-tools 3.12~pre2-1 tools for managing Linux kernel mo
ii udev 151-3 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.14.2-2 Tiny utilities for small and embed
initramfs-tools suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100326120915.2786.78862.reportbug@emuba1.uvu.hu-berlin.de">http://lists.debian.org/20100326120915.2786.78862.reportbug@emuba1.uvu.hu-berlin.de
03-26-2010, 01:45 PM
maximilian attems
Bug#575498: initramfs-tools: LVM doesn't start when using Labels in grub as rootlocation
severity 575498 wishlist
tags 575498 wontfix
stop
On Fri, Mar 26, 2010 at 01:09:15PM +0100, Ingo Rauschenberg wrote:
>
> I'm using in my grub configuration Labels to point out, where my Rootfs
> is located.
> This looks like # kopt=root=LABEL=ROOT ro
> When the vlm2 initramfs-tools script runs this is translated so that
> $ROOT is something like /dev/disk/by-label/ROOT
> The script don't activates the vg's so that my root-fs is missing.
I don't see an easy way of detecting that said label is a lvm volume.
anyway there is not much point in using LABEL for lvm volumes they
are unique anyway.
> I have in the switch statement in the activate_vg function the following
> lines appended and now it works (for me):
>
> /dev/disk/by-label*)
> lvm vgchange -aly --ignorelockingfailure
> exit 0
> ;;
aboves would enable any lvm vg,
this caused data loss for lvm2 also due mkfs and friends
not overwriting lvm data. so aboves is not a generic possibility.
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100326144521.GA22870@baikonur.stro.at">http://lists.debian.org/20100326144521.GA22870@baikonur.stro.at