A the moment I can see following solutions:
(1)
Make the lvchange_activate function in
/usr/share/initramfs-tools/scripts/local-top/lvm2 a while loop which executes
the "lvchange" command repeatedly until the root LV appears
(2)
Utilize udevd to create the LV devices while wait-for-root is waiting for the
root LV to appear. A hack for doing so is to replace in
/lib/udev/rules.d/69-lvm-metad.rules the line 96
ACTION!="remove", ENV{LVM_PV_GONE}=="1", RUN+="/bin/systemd-run /sbin/lvm
pvscan --cache $major:$minor --activate ay", GOTO="lvm_end"
with
ACTION!="remove", RUN+="/sbin/lvm pvscan --cache $major:$minor --activate ay"
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1807499
Title:
30 seconds boot delay when root fs is on lvm
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1807499/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs