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


Groups > linux.debian.kernel > #52764

Bug#807457: initramfs-tools: Add command to unpack initramfs

From Kevin Locke <kevin@kevinlocke.name>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#807457: initramfs-tools: Add command to unpack initramfs
Date 2016-02-10 05:30 +0100
Message-ID <r0uzE-5H1-5@gated-at.bofh.it> (permalink)
References <pFLHk-5xo-9@gated-at.bofh.it> <qDDC2-2Px-15@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

On Wed, 2015-12-09 at 03:23 +0000, Ben Hutchings wrote:
> Rather than duplicating code, please combine this with lsinitramfs
> (checking $0 to determine which command was invoked) or move the common
> code into a shell library.

I've taken a slightly different tact and implemented uninitramfs as a
thin wrapper for cpio.  It is designed as a drop-in replacement for
cpio wherever an initramfs may be present, and passes through all
options unmodified.  With this, I changed lsinitramfs to call
uninitramfs instead of cpio.

See what you think.

Thanks,
Kevin

P.S.  I named it "uninitramfs" instead of "unmkinitramfs" since it
does not depend on mkinitramfs specifically, and it seemed to fit with
"lsinitramfs" and the "initramfs" format.  But if you would prefer
"unmkinitramfs", I can change it.

-- 
Cheers,      |  kevin@kevinlocke.name    | XMPP: kevin@kevinlocke.name
Kevin        |  https://kevinlocke.name  | IRC:   kevinoid on freenode

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


Thread

Bug#790095: lsinitramfs(8): multiple-segmented initramfs supported Osamu Aoki <osamu@debian.org> - 2015-06-27 02:00 +0200
  Processed: Re: lsinitramfs(8): multiple-segmented initramfs supported owner@bugs.debian.org (Debian Bug Tracking System) - 2015-12-09 04:30 +0100
  Bug#790095: lsinitramfs(8): multiple-segmented initramfs supported Ben Hutchings <ben@decadent.org.uk> - 2015-12-09 04:30 +0100
  Bug#807457: lsinitramfs(8): multiple-segmented initramfs supported Ben Hutchings <ben@decadent.org.uk> - 2015-12-09 04:30 +0100
    Bug#807457: initramfs-tools: Add command to unpack initramfs Kevin Locke <kevin@kevinlocke.name> - 2016-02-10 05:30 +0100
  Bug#790095: marked as done (lsinitramfs(8): multiple-segmented  initramfs supported) owner@bugs.debian.org (Debian Bug Tracking System) - 2015-12-28 03:50 +0100
  Bug#807457: marked as done (Add command to unpack initramfs) owner@bugs.debian.org (Debian Bug Tracking System) - 2016-12-16 00:20 +0100

csiph-web