Mount boot partition if it is defined
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 21 Jan 2023 17:34:12 +0000 (12:34 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 1 Mar 2023 17:10:15 +0000 (12:10 -0500)
raspberrypi/conf/machine/raspberrypi-extra.conf
recipes-core/base-files/base-files_%.bbappend

index c412ecd..f872456 100644 (file)
@@ -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"
index 84276fe..f3e66ea 100644 (file)
@@ -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
 }