Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #52774

Bug#814288: Generates corrupt (?) initrd images

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#814288: Generates corrupt (?) initrd images
Date 2016-02-10 17:20 +0100
Message-ID <r0FEJ-4vM-5@gated-at.bofh.it> (permalink)
References <r0pqj-251-47@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Control: tag -1 moreinfo unreproducible

On Tue, 2016-02-09 at 17:51 -0500, Christopher David Howie wrote:
> Package: initramfs-tools
> Version: 0.120
> 
> I have a rather odd case where update-initramfs sometimes generates good
> initrds and sometimes it does not.  I'm not sure if the bug lies here or
> in the kernel, but after sinking hours into investigating this issues
> I'm very confident there is a bug somewhere.  I figure I will start with
> this package and see where we get.
> 
> Kernel info, for the record:
> 
> -----
> Linux debian-workstation 3.16.0-4-amd64 #1 SMP Debian
> 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
> -----
> 
> Every initrd generated on the target machine with "update-initramfs -k
> all -u" causes a kernel panic on the next boot:

Which boot loader are you using?

[...]
> I captured an example of a working and a broken initrd.  If I extract
> them (gunzip < $file | cpio -i -dv) and diff the two trees, only one
> file reports as being different: /etc/boottime.kmap.gz .  If I gunzip
> this file in both trees, diff reports no differences.
[...]

diffoscope (https://try.diffoscope.org/) agrees with that.

This works for me:

    kvm -m 1G -kernel /boot/vmlinuz-3.16.0-4-amd64 -initrd initrd.img-3.16.0-4-amd64.broken

Of course the initramfs can't find your root device, but it eventually
drops to a rescue shell.  Which I can't use because... is that 
Dvorak layout?

Ben.

-- 
Ben Hutchings
Beware of bugs in the above code;
I have only proved it correct, not tried it. - Donald Knuth

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#814288: Generates corrupt (?) initrd images Christopher David Howie <me@chrishowie.com> - 2016-02-10 00:00 +0100
  Processed: Re: Bug#814288: Generates corrupt (?) initrd images owner@bugs.debian.org (Debian Bug Tracking System) - 2016-02-10 17:20 +0100
  Bug#814288: Generates corrupt (?) initrd images Ben Hutchings <ben@decadent.org.uk> - 2016-02-10 17:20 +0100
    Bug#814288: Generates corrupt (?) initrd images Christopher David Howie <me@chrishowie.com> - 2016-02-10 19:10 +0100
  Bug#814288: marked as done (Generates corrupt (?) initrd images) owner@bugs.debian.org (Debian Bug Tracking System) - 2016-07-22 18:40 +0200

csiph-web