Set machine-id to uninitialized
An empty `/etc/machine-id` file does _not_ trigger systemd's "first boot" logic. This means with `ConditionFirstBoot=true` will not run, and the unit preset policy will not be applied. To ensure a first boot behaves the way we want, we need to pre-populate the `/etc/machine-id` file with the string `uninitialized\n`, per _machine-id(5)_ § _First Boot Semantics_.master
parent
f838e9f0bd
commit
d9415b0fb5
|
@ -67,6 +67,11 @@ $(BR2_EXTERNAL_AIMEEOS_PATH)/boot/grub2/gen-grub-cfg.sh $(LINUX_IMAGE_NAME)
|
|||
endef
|
||||
LINUX_TARGET_FINALIZE_HOOKS += AIMEEOS_GEN_GRUB_CFG
|
||||
|
||||
define AIMEEOS_TARGET_FINALIZE_HOOKS
|
||||
echo uninitialized > $(TARGET_DIR)/etc/machine-id
|
||||
endef
|
||||
TARGET_FINALIZE_HOOKS += AIMEEOS_TARGET_FINALIZE_HOOKS
|
||||
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT += $(BR2_EXTERNAL_AIMEEOS_PATH)/update/make-package.sh
|
||||
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue