From 6eae0b51c0b82671996c4e38b95dc512ca132554 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Wed, 2 Aug 2023 16:33:43 +0200 Subject: [PATCH] add base initscripts to initramfs image --- recipes-core/images/core-image-recovery.bb | 3 ++- recipes-diya/initramfs/files/init | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/recipes-core/images/core-image-recovery.bb b/recipes-core/images/core-image-recovery.bb index ce19ddb..1a7adde 100644 --- a/recipes-core/images/core-image-recovery.bb +++ b/recipes-core/images/core-image-recovery.bb @@ -43,7 +43,8 @@ image_patch () { rm -rf ${IMAGE_ROOTFS}/boot/* # create /etc/fstab cat << EOF > ${IMAGE_ROOTFS}/etc/fstab -/dev/mmcblk0p1 /boot auto defaults,sync,noauto 0 0 +/dev/mmcblk0p1 /boot auto defaults 0 0 + EOF cat << EOF > ${IMAGE_ROOTFS}/etc/hostname diya-recovery diff --git a/recipes-diya/initramfs/files/init b/recipes-diya/initramfs/files/init index c0ae264..bd009d4 100755 --- a/recipes-diya/initramfs/files/init +++ b/recipes-diya/initramfs/files/init @@ -57,9 +57,6 @@ fatal() { # Variables shared amoung modules EFI_DIR=/sys/firmware/efi # place to store device firmware information -# make mount stop complaining about missing /etc/fstab -touch /etc/fstab - # initialize /proc, /sys, /run/lock and /var/lock mkdir -p /proc /sys /run/lock /var/lock /var/run mount -t proc proc /proc