I also get this problem, on a minimal Ubuntu installed on an LVM-managed
disk. However, I believe that the fix should be:

sudo sed -i 's,\(ln -s "\$0" /tmp/mountroot-fail-
hooks\.d/\)"\$0",\1"\$1",' /usr/share/initramfs-tools/scripts/functions

i.e, that the path in /tmp/mountroot-fail-hooks should be given by the
parameter to the funcion. Apply this fix with (notice that bug 1835660
may now occur):

sudo update-initramfs -u

You can verify that the message goes away with

sudo journalctl -b | grep mountroot-fail-hooks

after next reboot.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1873797

Title:
  add_mountroot_fail_hook is either buggy or not used properly, causes
  boot problems

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools-ubuntu-core/+bug/1873797/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to