From 46bb69221abe979bfc65d757afb2092b3610c2d2 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Wed, 2 Aug 2023 16:14:34 +0200 Subject: [PATCH] add base initscripts to initramfs image --- recipes-core/images/core-image-recovery.bb | 9 +++++++-- recipes-diya/initramfs/files/confd | 8 -------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/recipes-core/images/core-image-recovery.bb b/recipes-core/images/core-image-recovery.bb index faeecf6..ce19ddb 100644 --- a/recipes-core/images/core-image-recovery.bb +++ b/recipes-core/images/core-image-recovery.bb @@ -41,6 +41,11 @@ IMAGE_PREPROCESS_COMMAND += "image_patch;" image_patch () { # delete unused image rm -rf ${IMAGE_ROOTFS}/boot/* - # patch inittab runlevel 6 - + # create /etc/fstab + cat << EOF > ${IMAGE_ROOTFS}/etc/fstab +/dev/mmcblk0p1 /boot auto defaults,sync,noauto 0 0 +EOF + cat << EOF > ${IMAGE_ROOTFS}/etc/hostname +diya-recovery +EOF } \ No newline at end of file diff --git a/recipes-diya/initramfs/files/confd b/recipes-diya/initramfs/files/confd index b6cac14..a72a399 100644 --- a/recipes-diya/initramfs/files/confd +++ b/recipes-diya/initramfs/files/confd @@ -10,19 +10,11 @@ case "$1" in # for some reason the LCD backlight is turned off # need to turn it on manually echo 0 > /sys/class/backlight/backlight/bl_power - # hostname - echo "diya-recovery" > /proc/sys/kernel/hostname - # mount boot - mount /dev/mmcblk0p1 /boot cat << EOF > /boot/extraconfig.txt # initramfs recovery-${MACHINE}.cpio.gz followkernel EOF ;; - - stop) - umount /boot - ;; *) N=/etc/init.d/$NAME