[Bug 1884079] Re: unmkinitramfs in initramfs-tools-core doesn't fully extract an initrd in bionic

Benjamin Drung 1884079 at bugs.launchpad.net
Tue Dec 19 23:39:06 UTC 2023


It is either fixed in Ubuntu 23.10 "mantic" or I fail to reproduce it:

$ lsinitramfs /boot/initrd.img
.
kernel
kernel/x86
kernel/x86/microcode
kernel/x86/microcode/AuthenticAMD.bin
kernel
kernel/x86
kernel/x86/microcode
kernel/x86/microcode/.enuineIntel.align.0123456789abc
kernel/x86/microcode/GenuineIntel.bin
[...]
$ unmkinitramfs /boot/initrd.img-6.5.0-14-generic /tmp/initrd-extract
$ ls /tmp/initrd-extract
early  early2  early3  main
$ find /tmp/initrd-extract/early -type f
/tmp/initrd-extract/early/kernel/x86/microcode/AuthenticAMD.bin
$ find /tmp/initrd-extract/early2 -type f
/tmp/initrd-extract/early2/kernel/x86/microcode/GenuineIntel.bin


** Changed in: initramfs-tools (Ubuntu)
       Status: Confirmed => Fix Released

-- 
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/1884079

Title:
  unmkinitramfs in initramfs-tools-core doesn't fully extract an initrd
  in bionic

Status in initramfs-tools package in Ubuntu:
  Fix Released

Bug description:
  I am running Ubuntu 18.04.4

  I am looking at the initrd found in the desktop live cd (<cd loop
  mount>/casper/initrd). If you execute `binwalk initrd`, binwalk
  informs that the initrd file contains 2 cpio archives and a lzma
  archive

  The first cpio archive is supposed to contain kernel/x86/microcode/AuthenticAMD.bin
  The second cpio archive is supposed to contain kernel/x86/microcode/GenuineIntel.bin
  The third file is a LZMA compressed data

  Now, if you execute `unmkinitramfs <cd loop mount>/casper/initrd new-
  directory` , you will see 2 directories, "early" and "main".

  "early" has the AuthenticAMD.bin, which means it corresponds to the first cpio. 
  "main" is the actual initial ram disk file system, which comes from the LZMA compressed data. 

  What I expect to see is also the GenuineIntel.bin firmware. `binwalk`
  says it's there, but `unmkinitramfs` is not able to extract it out.
  Why?

  I see binwalk is at version 2.1.1-16, while initramfs-tools-core
  (which provides unmkinitramfs) is at version 0.130ubuntu3.9.

  How do I extract the ubuntu 18 initramfs and get all the contents that
  binwalk is able to see?

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




More information about the foundations-bugs mailing list