Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 346917 - sys-fs/lvm2 - lvm2create_initrd: error on boot "vgchange: not found"
Summary: sys-fs/lvm2 - lvm2create_initrd: error on boot "vgchange: not found"
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-27 03:50 UTC by yago sanyago
Modified: 2011-09-13 06:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yago sanyago 2010-11-27 03:50:08 UTC
after boot on a root over lvm2
I get "vgchange: not found"

Reproducible: Always

Steps to Reproduce:
1. run lvm2create_initrd
2. edit grub.conf to use the initrd
3. just reboot

Actual Results:  
"vgchange: not found"
then the system doesn't load


i fix it, with mounting the initrams and adding a symlink
ln -s lvm.static vgchange

but the more accurate way to solve this, I guess is to patch the lvm2create_initrd script
with something like this
LVM="/sbin/lvm.static"
because in the /sbin/init 
is a line with
$LVM vgchange --ignorelockingfailure -P -a y
and the thing is that $LVM is not define before

*** /usr/sbin/lvm2create_initrd	2010-11-26 21:35:44.171000075 -0600
--- lvm2create_initrd	2010-11-26 21:35:29.001000085 -0600
***************
*** 105,110 ****
--- 105,111 ----
  # for chroot, blockdev
  PATH="/sbin:/bin:/usr/sbin:/usr/bin:/lib/lvm-200:/initrd/bin:/initrd/sbin"
  PRE="initrd:"
+ LVM="/sbin/lvm.static"
  
  do_shell(){
      /bin/echo
Comment 1 Ed Nowak 2011-03-13 23:13:51 UTC
Unfortunately I can confirm that this bug still exist. I was looking for this in changelog but nothing found about fixing this.
Patch already provided by yago will fix this.. Thanks guys ;)
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-09-13 06:43:56 UTC
Please submit patches for lvm2create_initrd to upstream.