[Bug 1832108] Re: unmkinitramfs fails with lz4 compressed initrds
Dimitri John Ledkov
launchpad at surgut.co.uk
Thu Jul 4 16:18:33 UTC 2019
Testing on cm3
switch to partitions #0, OK
mmc0(part 0) is current device
LOADBOOTENV
** Unable to read file uEnv.txt **
Running uenvcmd ...
ENVCMD
6644040 bytes read in 282 ms (22.5 MiB/s) (this is kernel)
2852487 bytes read in 123 ms (22.1 MiB/s) (this is initrd)
FAT: Misaligned buffer address (023b8687)
42049 bytes read in 14 ms (2.9 MiB/s)
2019-07-04T15:35:05.998027+0000 localhost kernel: Unpacking initramfs...
2019-07-04T15:35:05.998089+0000 localhost kernel: Freeing initrd memory: 2828K
(not sure if above is true gzip decompression speed of initramfs or not)
Watching telnet, from reboot until "Press enter to configure" took
41.84s (42.25s 41.50s).
--
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/1832108
Title:
unmkinitramfs fails with lz4 compressed initrds
Status in initramfs-tools package in Ubuntu:
Fix Released
Status in initramfs-tools source package in Cosmic:
In Progress
Status in initramfs-tools source package in Disco:
Fix Released
Status in initramfs-tools package in Debian:
New
Bug description:
[Impact]
* Cannot unpack initrds compressed with lz4 due to changes in lz4
[Test Case]
$ sudo apt install initramfs-tools lz4 file
$ mkinitramfs -c lz4 -o foo.img
$ lsinitramfs foo.img
cpio: premature end of archive
[Regression Potential]
* New lz4cat is more strict w.r.t. enforcing file name extensions,
thus the fix is to feed a stream to lz4cat instead of asking it to
open a file. The performance impact should be similar between both
methods of reading file contents during ls/unmk-initramfs time.
[Other Info]
Original bug report:
unmkinitramfs fails with lz4 compressed initrds
Note:
$ lz4cat -t unmkinitramfs_Cz6Yl9
File extension doesn't match expected LZ4_EXTENSION (.lz4); will not process file: unmkinitramfs_Cz6Yl9
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1832108/+subscriptions
More information about the foundations-bugs
mailing list