From 5f6c03253fd414566bcf43f34b8aebbb0fc8b04e Mon Sep 17 00:00:00 2001 From: DanyLE Date: Tue, 1 Aug 2023 18:59:16 +0200 Subject: [PATCH] use sysvinit --- recipes-core/images/core-image-recovery.bb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/recipes-core/images/core-image-recovery.bb b/recipes-core/images/core-image-recovery.bb index d3bc0fb..1f47497 100644 --- a/recipes-core/images/core-image-recovery.bb +++ b/recipes-core/images/core-image-recovery.bb @@ -22,8 +22,16 @@ IMAGE_ROOTFS_EXTRA_SPACE = "0" # Use the same restriction as initramfs-module-install COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)' -IMAGE_PREPROCESS_COMMAND += "clobber_unused;" +IMAGE_PREPROCESS_COMMAND += "image_patch;" -clobber_unused () { +image_patch () { + # delete unused image rm -rf ${IMAGE_ROOTFS}/boot/* + # setup hostname +cat << 'EOF' >> "${IMAGE_ROOTFS}/etc/hostname" +diyaid +EOF + # enable autologin + sed -i 's/options="/&--autologin root /' \ + "${IMAGE_ROOTFS}${base_bindir}/start_getty" } \ No newline at end of file