NOTICE:
ln: /tmp/mountroot-fail-hooks.d//scripts/init-premount/lvm2: No such file or directory
https://bugs.launchpad.net/ubuntu/+sour ... ug/1873614
Step by step actions below
1)
Definition of add_mountroot_fail_hook doesnt match lvm2's usage:
a)
Edit /usr/share/initramfs-tools/scripts/functions
Change necessary lines (marked with blue)
Exact commands:
sudo nano /usr/share/initramfs-tools/scripts/functions
# Replace the line as marked with blue below (number “0” to “1”)
ln -s "$0" /tmp/mountroot-fail-hooks.d/"$0"
with
ln -s "$0" /tmp/mountroot-fail-hooks.d/"$1"
b)
Run as root and restart.
Exact commands:
update-initramfs -uk all
Original link:
https://bugs.launchpad.net/ubuntu/+sour ... ug/1873614
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------