Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 346917

Summary: sys-fs/lvm2 - lvm2create_initrd: error on boot "vgchange: not found"
Product: Gentoo Linux Reporter: yago sanyago <dark.magician.48>
Component: [OLD] Core systemAssignee: Robin Johnson <robbat2>
Status: RESOLVED UPSTREAM    
Severity: normal CC: agk, cardoe
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.