Author: jow Date: 2015-03-24 11:06:40 +0100 (Tue, 24 Mar 2015) New Revision: 44959
Modified: trunk/target/linux/x86_64/image/Makefile Log: x86_64: fix PARTUUID format with leading zeros Otherwise the root device won't be found in 1/16 of the generated images (whenever the signature starts with a zero digit). Signed-off-by: Matthias Schiffer <[email protected]> Modified: trunk/target/linux/x86_64/image/Makefile =================================================================== --- trunk/target/linux/x86_64/image/Makefile 2015-03-24 10:06:38 UTC (rev 44958) +++ trunk/target/linux/x86_64/image/Makefile 2015-03-24 10:06:40 UTC (rev 44959) @@ -40,7 +40,7 @@ GRUB_TERMINAL_CONFIG := terminal_input $(GRUB_TERMINALS); terminal_output $(GRUB_TERMINALS) endif -SIGNATURE:=$(shell dd if=/dev/urandom bs=4 count=1 2>/dev/null | hexdump -v -e '"%02x"') +SIGNATURE:=$(shell dd if=/dev/urandom bs=4 count=1 2>/dev/null | hexdump -v -e '"%08x"') ROOTPART:=$(call qstrip,$(CONFIG_TARGET_ROOTFS_PARTNAME)) ROOTPART:=$(if $(ROOTPART),$(ROOTPART),PARTUUID=$(SIGNATURE)-02) _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
