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

[PATCH] amend casper UUID extraction from initrd - resubmission synced with current git



Hello,

Please accept this patch which fixes the casper uuid extraction from initrd:

* lzcat bails out due to non-standard file extension (unknown suffix -- unchanged)

* incorrect destination path for uuid.conf

Cheers,

Luigi Capriotti
--- 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: