Public bug reported:

ln -s "$0" /tmp/mountroot-fail-hooks.d/"$0" makes no sense when $0 is a
full path.

in /usr/share/initramfs-tools/scripts/init-premount/lvm2 there is this
line:

  add_mountroot_fail_hook "20-lvm2"

It tries to link /scripts/init-premount/lvm2 to /tmp/mountroot-fail-
hooks.d//scripts/init-premount/lvm2, and the argument "20-lvm2" is
discarded.

This causes boot problems.

Solution?

ln -s "$0" /tmp/mountroot-fail-hooks.d/"$(basename "${1:-$0}")"

** Affects: initramfs-tools-ubuntu-core (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to