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

Bug#658995: casper UUID extraction from initrd fails



Package: live-build
Version: 3.0~a43-1

Symptoms:

1. lzcat bails out due to non-standard file extension:
unknown suffix -- unchanged

2. incorrect destination path for uuid.conf

I suggest to incorporate the attached patch to fix the bug.

Tks

Luigi
--- Old/lb_binary_disk	2012-01-27 15:14:12.717124447 +0100
+++ New/lb_binary_disk	2012-01-27 15:17:56.309121623 +0100
@@ -108,13 +108,13 @@
 					;;
 
 				lzma)
-					lzcat "../../${INITRD}" | cpio --quiet -id conf/uuid.conf
+					lzcat -S "" "../../${INITRD}" | cpio --quiet -id conf/uuid.conf
 					;;
 			esac
 
 			if [ -e conf/uuid.conf ]
 			then
-				mv conf/uuid.conf "../binary/.disk/casper-uuid${INITRD#binary/casper/initrd.img}"
+				mv conf/uuid.conf "../.disk/casper-uuid${INITRD#binary/casper/initrd.img}"
 			else
 				Echo_warning "Failed to find casper uuid.conf in '${INITRD}'"
 			fi

Reply to: