Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #64242
| From | Dimitri John Ledkov <xnox@ubuntu.com> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#930366: initramfs-tools: unmkinitramfs fails to unpack lz4 compressed initrd |
| Date | 2019-06-11 16:20 +0200 |
| Message-ID | <y7PMZ-3e4-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
[Multipart message — attachments visible in raw view] - view raw
Package: initramfs-tools Version: 0.133 Severity: normal Tags: patch Dear Maintainer, unmkinitramfs fails to unpack lz4 compressed initrd, ie.: $ sudo apt install initramfs-tools lz4 file $ mkinitramfs -c lz4 -o foo.img $ unmkinitramfs foo.img bar cpio: premature end of archive $ echo $? 2 I think this is because lz4cat is strict with file extensions: $ file foo.img foo.img: LZ4 compressed data (v0.1-v0.9) $ lz4cat -t foo.img File extension doesn't match expected LZ4_EXTENSION (.lz4); will not process file: foo.img I propose the attached patch to change 'lz4cat -t $archive' invocations to become 'lz4cat -t <$archive' instead. As lz4cat does not / cannot enforce extension checking on streams. Regards, Dimitri.
Back to linux.debian.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Bug#930366: initramfs-tools: unmkinitramfs fails to unpack lz4 compressed initrd Dimitri John Ledkov <xnox@ubuntu.com> - 2019-06-11 16:20 +0200 Bug#930366: marked as done (initramfs-tools: unmkinitramfs fails to unpack lz4 compressed initrd) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2019-07-28 03:00 +0200 Bug#930366: marked as done (initramfs-tools: unmkinitramfs fails to unpack lz4 compressed initrd) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2019-08-23 10:10 +0200
csiph-web