From dfaa4a67b55613087cd7beb80fb386a85f1c84f8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 7 Sep 2011 14:16:05 +0200 Subject: Doing uuid.conf extraction from initrd with the correct decompression utility (Closes: #637979). --- scripts/build/lb_binary_disk | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/build/lb_binary_disk b/scripts/build/lb_binary_disk index a7ddef25d..1dc8d82db 100755 --- a/scripts/build/lb_binary_disk +++ b/scripts/build/lb_binary_disk @@ -91,7 +91,19 @@ case "${LB_INITRAMFS}" in mkdir -p binary/uuid cd binary/uuid - zcat "../../${INITRD}" | cpio --quiet -id conf/uuid.conf + case "${LB_INITRAMFS_COMPRESSION}" in + gzip) + zcat "../../${INITRD}" | cpio --quiet -id conf/uuid.conf + ;; + + bzip2) + bzcat "../../${INITRD}" | cpio --quiet -id conf/uuid.conf + ;; + + lzma) + lzcat "../../${INITRD}" | cpio --quiet -id conf/uuid.conf + ;; + esac if [ -e conf/uuid.conf ] then -- cgit v1.2.3