Compare commits

...

2 Commits

Author SHA1 Message Date
Dustin b2a0aab680 Include sleep command in initramfs
Aimee OS/aimee-os/pipeline/head This commit looks good Details
This is needed in case we need to poll for the block device containing
the root filesystem.
2025-09-03 09:51:51 -05:00
Dustin d9415b0fb5 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_.
2025-09-03 09:48:20 -05:00
2 changed files with 6 additions and 0 deletions

View File

@ -83,6 +83,7 @@ bin_install \
/bin/mount \
/bin/rm \
/bin/sh \
/bin/sleep \
/bin/sort \
/bin/tail \
/bin/umount \

View File

@ -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