Ubuntu20.04启动显示错误: ln: /tmp/mountroot-fail-hooks.d//scripts/init-premount/lvm2: No such file or directory

修改步骤:
a)
Edit /usr/share/initramfs-tools/scripts/functions
Change necessary lines (marked with blue)


Exact commands:
sudo vim /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

时间比较长,稍微等待下

c)重启系统

 

链接:https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1873614

  • 添加到短语集
     
    • 没有此单词集:英语 → ...
       
    • 创建新的单词集...
  • 拷贝
  • 添加到短语集
     
    • 没有此单词集:英语 → ...
       
    • 创建新的单词集...
  • 拷贝
posted @ 2021-08-03 00:28  平安1111  阅读(446)  评论(0编辑  收藏  举报