Discussion:
[gentoo-user] initramfs with lvm
(too old to reply)
林守磊
2012-04-19 02:00:02 UTC
Permalink
I get problom with my initramfs.:

1. I used to boot my kernel with genkernel-initramfs, but I must genarate
the initramfs again by genkernel. when I change the kernel vernsion.
2. I have the '/' partition created with lvm, when I use genkernel to make
the kernel and initramfs( with option --lvm ), the error "block device
/dev/mapper/vg-gentoo_root is not a valid root device" show up. kernel
version 3.2.2
3. I try to emerge dracut-018 to create my initramfs, but I use the USE
DRACUT_MODULES="lvm", which try to emerge device-mapper and conflict with
lvm2. I am pullzed.

thx in advance.
Canek Peláez Valdés
2012-04-19 02:30:01 UTC
Permalink
[ snip ]
Post by 林守磊
3. I try to emerge dracut-018 to create my initramfs, but I use the USE
DRACUT_MODULES="lvm", which try to emerge device-mapper and  conflict with
lvm2. I am pullzed.
You need LVM >= 2.02.33 for dracut 018. Which version do you have?
Also, do you have device-mapper enabled in /etc/make.conf?

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
林守磊
2012-04-19 14:50:01 UTC
Permalink
yes. i already have lvm2 installed. The problom is dracut depend device
mapper
Post by Canek Peláez Valdés
[ snip ]
Post by 林守磊
3. I try to emerge dracut-018 to create my initramfs, but I use the USE
DRACUT_MODULES="lvm", which try to emerge device-mapper and conflict with
lvm2. I am pullzed.
You need LVM >= 2.02.33 for dracut 018. Which version do you have?
Also, do you have device-mapper enabled in /etc/make.conf?
Regards.
--
Canek Pelš¢ez ValdšŠs
Posgrado en Ciencia e Ingenieršªa de la Computaciš®n
Universidad Nacional Autš®noma de MšŠxico
Canek Peláez Valdés
2012-04-19 16:10:02 UTC
Permalink
Post by 林守磊
yes. i already have lvm2 installed. The problom is dracut depend device
mapper
Which version of LVM2? Do you have device-mapper on USE in /etc/make.conf?

Regards.
Post by 林守磊
Post by Canek Peláez Valdés
[ snip ]
Post by 林守磊
3. I try to emerge dracut-018 to create my initramfs, but I use the USE
DRACUT_MODULES="lvm", which try to emerge device-mapper and  conflict with
lvm2. I am pullzed.
You need LVM >= 2.02.33 for dracut 018. Which version do you have?
Also, do you have device-mapper enabled in /etc/make.conf?
Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
林守磊
2012-04-20 14:30:01 UTC
Permalink
I miss the USE device-mapper, that is my fault. now I install the dracut
completely.

Thank you!
Post by Canek Peláez Valdés
Post by 林守磊
yes. i already have lvm2 installed. The problom is dracut depend device
mapper
Which version of LVM2? Do you have device-mapper on USE in /etc/make.conf?
Regards.
Post by 林守磊
Post by Canek Peláez Valdés
[ snip ]
Post by 林守磊
3. I try to emerge dracut-018 to create my initramfs, but I use the
USE
Post by 林守磊
Post by Canek Peláez Valdés
Post by 林守磊
DRACUT_MODULES="lvm", which try to emerge device-mapper and conflict with
lvm2. I am pullzed.
You need LVM >= 2.02.33 for dracut 018. Which version do you have?
Also, do you have device-mapper enabled in /etc/make.conf?
Regards.
--
Canek Pelš¢ez ValdšŠs
Posgrado en Ciencia e Ingenieršªa de la Computaciš®n
Universidad Nacional Autš®noma de MšŠxico
--
Canek Pelš¢ez ValdšŠs
Posgrado en Ciencia e Ingenieršªa de la Computaciš®n
Universidad Nacional Autš®noma de MšŠxico
Sebastian Pipping
2012-04-20 20:50:03 UTC
Permalink
Post by 林守磊
1. I used to boot my kernel with genkernel-initramfs, but I must
genarate the initramfs again by genkernel. when I change the kernel
vernsion.
2. I have the '/' partition created with lvm, when I use genkernel to
make the kernel and initramfs( with option --lvm ), the error "block
device /dev/mapper/vg-gentoo_root is not a valid root device" show up.
kernel version 3.2.2
Do you have "dolvm" in the kernel boot options? That's needed.

Best,



Sebastian
林守磊
2012-04-21 13:30:03 UTC
Permalink
yes£¬and I already boot up successfully
Post by Sebastian Pipping
Post by 林守磊
1. I used to boot my kernel with genkernel-initramfs, but I must
genarate the initramfs again by genkernel. when I change the kernel
vernsion.
2. I have the '/' partition created with lvm, when I use genkernel to
make the kernel and initramfs( with option --lvm ), the error "block
device /dev/mapper/vg-gentoo_root is not a valid root device" show up.
kernel version 3.2.2
Do you have "dolvm" in the kernel boot options? That's needed.
Best,
Sebastian
Loading...