Skip to content
Snippets Groups Projects
Commit d5ee23ee authored by Felix Fietkau's avatar Felix Fietkau
Browse files

x86: stop relying on hexdump for image build signature

Use perl to generate random number instead.
See https://github.com/freifunk-gluon/gluon/issues/811



Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent f226d587
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ ifneq ($(GRUB_TERMINALS),)
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 '"%08x"')
SIGNATURE:=$(shell perl -e 'printf("%08x", rand(0xFFFFFFFF))')
ROOTPART:=$(call qstrip,$(CONFIG_TARGET_ROOTFS_PARTNAME))
ROOTPART:=$(if $(ROOTPART),$(ROOTPART),PARTUUID=$(SIGNATURE)-02)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment