diff options
Diffstat (limited to 'scripts/build/lb_binary_disk')
-rwxr-xr-x | scripts/build/lb_binary_disk | 14 |
1 files changed, 13 insertions, 1 deletions
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 |