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
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 ;)
Please submit patches for lvm2create_initrd to upstream.