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: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
f226d5879e
commit
d5ee23ee27
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ ifneq ($(GRUB_TERMINALS),)
|
||||||
GRUB_TERMINAL_CONFIG := terminal_input $(GRUB_TERMINALS); terminal_output $(GRUB_TERMINALS)
|
GRUB_TERMINAL_CONFIG := terminal_input $(GRUB_TERMINALS); terminal_output $(GRUB_TERMINALS)
|
||||||
endif
|
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:=$(call qstrip,$(CONFIG_TARGET_ROOTFS_PARTNAME))
|
||||||
ROOTPART:=$(if $(ROOTPART),$(ROOTPART),PARTUUID=$(SIGNATURE)-02)
|
ROOTPART:=$(if $(ROOTPART),$(ROOTPART),PARTUUID=$(SIGNATURE)-02)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue