[Bug 2052669] [NEW] 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.

Imri Paloja 2052669 at bugs.launchpad.net
Wed Feb 7 23:52:11 UTC 2024


Public bug reported:

My bare metal server would not restart,

Found out that I got 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://askubuntu.com/a/41939/36315, to "update-initramfs -u -k
{version}".

Then I got the below message:

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.

I found a workaround for it: https://askubuntu.com/a/916283/36315

   "sudo chmod -x /usr/share/initramfs-tools/hooks/fixrtc"

I did that for every file in usr/share/initramfs-tools/hooks/*

After that I did

    update-initramfs -u -k all
    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."

I reinstalled Ubuntu 22.04 on this bare metal, but even after reinstall,
I get the No working init found.

Any help is greatly appreciated!

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

** Description changed:

- My bare metal server would not restart, I started up in a Rescue,
- installed update, then I got the below message:
+ My bare metal server would not restart,
+ 
+ Found out that I got the following error:
+ 
+     "Kernel Panic - not syncing: VFS: Unable to mount root fs on
+ unknown-block(0,0)"
+ 
+ 
+ I started up in a Rescue, installed updates, then I got the below message:
  
  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.
  
  I found a workaround for it: https://askubuntu.com/a/916283/36315
  
-    "sudo chmod -x /usr/share/initramfs-tools/hooks/fixrtc"
+    "sudo chmod -x /usr/share/initramfs-tools/hooks/fixrtc"
  
  I did that for every file in usr/share/initramfs-tools/hooks/*
  
  After that I did
  
-     update-initramfs -u -k all
-     update-grub
- 
+     update-initramfs -u -k all
+     update-grub
  
  I rebooted from Rescue, and I got the following error:
  
- 
- "Kernel Panic - not syncing: No working init found. Try passing init= option to kernel."
- 
+ "Kernel Panic - not syncing: No working init found. Try passing init=
+ option to kernel."
  
  I reinstalled Ubuntu 22.04 on this bare metal, but even after reinstall,
  I get the No working init found.
  
  Any help is greatly appreciated!

** Description changed:

  My bare metal server would not restart,
  
  Found out that I got the following error:
  
-     "Kernel Panic - not syncing: VFS: Unable to mount root fs on
+     "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://askubuntu.com/a/41939/36315, to "update-initramfs -u -k
+ {version}".
  
- I started up in a Rescue, installed updates, then I got the below message:
+ Then I got the below message:
  
  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.
  
  I found a workaround for it: https://askubuntu.com/a/916283/36315
  
     "sudo chmod -x /usr/share/initramfs-tools/hooks/fixrtc"
  
  I did that for every file in usr/share/initramfs-tools/hooks/*
  
  After that I did
  
      update-initramfs -u -k all
      update-grub
  
- I rebooted from Rescue, and I got the following error:
+ 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."
+     "Kernel Panic - not syncing: No working init found. Try passing
+ init= option to kernel."
  
  I reinstalled Ubuntu 22.04 on this bare metal, but even after reinstall,
  I get the No working init found.
  
  Any help is greatly appreciated!

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

Title:
  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.

Status in initramfs-tools package in Ubuntu:
  New

Bug description:
  My bare metal server would not restart,

  Found out that I got 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://askubuntu.com/a/41939/36315, to "update-initramfs -u -k
  {version}".

  Then I got the below message:

  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.

  I found a workaround for it: https://askubuntu.com/a/916283/36315

     "sudo chmod -x /usr/share/initramfs-tools/hooks/fixrtc"

  I did that for every file in usr/share/initramfs-tools/hooks/*

  After that I did

      update-initramfs -u -k all
      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."

  I reinstalled Ubuntu 22.04 on this bare metal, but even after
  reinstall, I get the No working init found.

  Any help is greatly appreciated!

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




More information about the foundations-bugs mailing list