update-initramfs: Generating /boot/initrd.img-5.15.0-92-generic E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1. update-initramfs: failed for /boot/initrd.img-5.15.0-92-generic with 1.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
My bare metal server would not restart. After some research, I found out that I get the following error:
"Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)"
I started up in a Rescue, and followed the steps in https:/
Then I got the below message:
update-initramfs: Generating /boot/initrd.
E: /usr/share/
update-initramfs: failed for /boot/initrd.
I found a workaround for it: https:/
"sudo chmod -x /usr/share/
I did that for every file in usr/share/
After that I did
update-
update-grub
I rebooted from Rescue, and then I got the following error:
"Kernel Panic - not syncing: No working init found. Try passing init= option to kernel."
AFter this, I reinstalled Ubuntu 22.04 on my bare metal server, but even after reinstall, I get the "No working init found" error message.
I have no idea now how to fix this.
Any help is greatly appreciated!
Thank you for taking the time to report this bug and helping to make Ubuntu better. From your description it is hard to tell if you experienced one or multiple bugs. Does running "update-initramfs -u -k {version}" succeed?