From: Robin H. Johnson Date: Thu, 22 Sep 2011 22:43:47 +0000 (+0000) Subject: Allow real_root to point to LVM-created symlinks. X-Git-Tag: v3.4.19~5 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=00b5b3ab6603191c5a2e652b26595ab7aa5db188;p=genkernel.git Allow real_root to point to LVM-created symlinks. Needed to unbreak root-on-LVM on my laptop. Signed-off-by: Robin H. Johnson --- diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index da8cb01..b6b01ca 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -648,6 +648,11 @@ startVolumes() { # To activate volumegroups on all devices in the cache lvm_commands="${lvm_commands} \nvgchange -ay --sysinit" + + # To create symlinks so users can use real_root=/dev/vg/root + # This needs to run after vgchange, using vgchange --mknodes is too + # early. + lvm_commands="${lvm_commands} \nvgmknodes --ignorelockingfailure" # And finally execute it all (/proc/... needed if lvm is compiled without readline) good_msg "Scanning for and activating Volume Groups"