Reproduce the problem:

# dpkg-query -W initramfs-tools lz4
initramfs-tools 0.131ubuntu19
lz4     1.8.3-1ubuntu1

# sed -i 's/gzip/lz4/' /etc/initramfs-tools/initramfs.conf

# update-initramfs -c -k test

# lsinitramfs /boot/initrd.img-test 
cpio: premature end of archive

===

# sed 's/-updates/-proposed/' -i /etc/apt/sources.list
# apt update
# dpkg-query -W initramfs-tools lz4
initramfs-tools 0.131ubuntu19.1
lz4     1.8.3-1ubuntu1

# lsinitramfs /boot/initrd.img-test
...
all the files are listed


** Tags removed: verification-needed-disco
** Tags added: verification-done-disco

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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 Committed
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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to