Doing uuid.conf extraction from initrd with the correct decompression utility (Closes: #637979).

This commit is contained in:
Daniel Baumann 2011-09-07 14:16:05 +02:00
parent ef53525970
commit dfaa4a67b5
1 changed files with 13 additions and 1 deletions

View File

@ -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