[Pkg-xen-devel] [PATCH 12/16] d/shuffle-boot-files: Support filenames besides .gz

Hans van Kranenburg hans at knorrie.org
Fri Jan 15 20:47:49 GMT 2021


On 9/21/20 12:38 AM, Elliott Mitchell wrote:
> While I'm unaware of initiatives to support formats besides GNU zip, a
> number of other formats have appeared which may potentially gain support.
> BZIP, LZMA and XZ are notable for substantially better compression ratio,
> LZ4 is notable for greater speed.  Adjust the glob patterns to allow for
> their use in the future.

Let's do this whenever there's actually something that starts getting
used. Maybe I'm working on a new format AKCF, the Awesome Knorrie
Compression Format, which does not contain a z.

> 
> Signed-off-by: Elliott Mitchell <ehem+debian at m5p.com>
> ---
>  debian/shuffle-boot-files | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/debian/shuffle-boot-files b/debian/shuffle-boot-files
> index bcb7197b1a..88bcdd8d68 100755
> --- a/debian/shuffle-boot-files
> +++ b/debian/shuffle-boot-files
> @@ -20,10 +20,10 @@ mkdir -p "$dest"
>  # more useful when the -i386 flavour existed and was coinstallable
>  # with the -amd64 flavour.)
>  
> -verstring="$(readlink debian/tmp/boot/xen.gz ||
> +verstring="$(readlink debian/tmp/boot/xen.?z* ||
>              readlink debian/tmp/boot/xen)"
>  verstring="${verstring##*xen-}"
> -verstring="${verstring%.gz}"
> +verstring="${verstring%.?z*}"
>  
>  for f in `cd "$t/boot" && find * -type f -print`; do
>  	cp -v "$t/boot/$f" "$dest/${f/$verstring/$newvers}"
> 




More information about the Pkg-xen-devel mailing list