From e6abc65d019640dba634942dc04d659dad617d4a Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sat, 21 Jan 2023 12:34:12 -0500 Subject: [PATCH] Mount boot partition if it is defined --- raspberrypi/conf/machine/raspberrypi-extra.conf | 1 + recipes-core/base-files/base-files_%.bbappend | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/raspberrypi/conf/machine/raspberrypi-extra.conf b/raspberrypi/conf/machine/raspberrypi-extra.conf index c412ecd..f872456 100644 --- a/raspberrypi/conf/machine/raspberrypi-extra.conf +++ b/raspberrypi/conf/machine/raspberrypi-extra.conf @@ -5,6 +5,7 @@ ROOT_PARENT_DEV = "/dev/mmcblk0" ROOT_PART_PREFIX = "p" # Partitions configuration: +BOOT_PART_ID = "1" ROOT_PART_A_ID = "2" ROOT_PART_B_ID = "3" UBOOT_PART_VAR = "rpipart" diff --git a/recipes-core/base-files/base-files_%.bbappend b/recipes-core/base-files/base-files_%.bbappend index 84276fe..f3e66ea 100644 --- a/recipes-core/base-files/base-files_%.bbappend +++ b/recipes-core/base-files/base-files_%.bbappend @@ -17,4 +17,11 @@ do_install:append () { install -d ${D}${sysconfdir}/profile.d install -m 0644 locale.sh ${D}${sysconfdir}/profile.d/ + + echo "# Manually added entries for HV MPD server project:" >> \ + ${D}${sysconfdir}/fstab + if [ x"${BOOT_PART_ID}" != x"" ]; then + echo "${ROOT_PARENT_DEV}${ROOT_PART_PREFIX}${BOOT_PART_ID} /boot auto defaults 0 0" >> \ + ${D}${sysconfdir}/fstab + fi } -- 2.20.1