Bug#717805: initramfs-tools: lsinitramfs doesn't understand early microcode images

2014-08-23 Thread Stephen Powell
Brett, your patch (and Olivier, your revised one) don't seem to work for me
anymore.  By trial and error experimentation (wild guessing), I find that
the magic number is no longer 8, but 4, for the two initial RAM file systems
that I currently possess, both of which have a real_offset value, before
incrementing, of 6796.  I note that 6796 divided by 8 yields a quotient of 849
and a remainder of 4.  Hmm.  Adding 4 brings the value to an integer multiple
of 8.  I wonder.  Maybe the correct algorithm is

   real_offset=$(((real_offset+8)/8*8))

This will bump real_offset to the next higher multiple of 8.  Is this correct?
I have no idea.  What I do know is that the current algorithm doesn't work for
me, but the above does.  For now.  Will it continue to work in the future?
I don't know.

-- 
  .''`. Stephen Powell
 : :'  :
 `. `'`
   `-


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/66851843.402888.1408838404613.javamail.r...@md01.wow.synacor.com



Bug#717805: initramfs-tools: lsinitramfs doesn't understand early microcode images

2013-07-25 Thread Toby Speight
Package: initramfs-tools
Version: 0.113
Severity: normal
File: /usr/bin/lsinitramfs

Dear Maintainer,

With iucode-tool installed, mkinitramfs will generate an image for 3.9
or higher kernels with an uncompressed cpio archive containing processor
firmware before the main, compressed initramfs.  lsinitramfs doesn't
handle this at all, simply repeating the file name to stdout (not even
listing the contents of the first archive).

I believe that initramfs should list the contents of both the early
microcode firmware and the main initramfs when looking at one of these
archives.


-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 2.8M Jul 17 17:56 /boot/initrd.img-3.10.1
-rw-r--r-- 1 root root 2.8M Jul 16 23:25 /boot/initrd.img-3.9.8

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=xz
BOOT=local
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
busybox
dmsetup
intel_microcode
keymap
klibc
kmod
thermal
udev


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (900, 'stable'), (400, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
armel

Kernel: Linux 3.10.1-balti (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii  cpio   2.11+dfsg-1
ii  klibc-utils2.0.1-3.1
ii  kmod   9-3
ii  module-init-tools  9-3
ii  udev   175-7.2

Versions of packages initramfs-tools recommends:
ii  busybox  1:1.20.0-8.1

Versions of packages initramfs-tools suggests:
ii  bash-completion  1:2.0-1

-- Configuration Files:
/etc/initramfs-tools/initramfs.conf changed:
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=xz
BOOT=local
DEVICE=
NFSROOT=auto


-- no debconf information