[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pvgrub with lz4 compressed kernels

  • To: xen-users@xxxxxxxxxxxxxxxxxxxx
  • From: Andy Smith <andy@xxxxxxxxxxxxxx>
  • Date: Sun, 10 May 2020 21:52:40 +0000
  • Delivery-date: Sun, 10 May 2020 21:54:28 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>
  • Openpgp: id=BF15490B; url=http://strugglers.net/~andy/pubkey.asc

On Thu, May 07, 2020 at 10:51:54PM +0000, Andy Smith wrote:
> Do you know a way to detect only LZ4 kernel images? That way this
> technique could be used for only LZ4, as every other compression
> method works fine at the moment.

You can of course just use the pattern from extract-vmlinux to check
an image file:

lz4match=$(printf '\002!L\030')
grep -aq "$lz4match" /boot/vmlinuz-5.4.0-29-generic && echo "At least one LZ4 




Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.