]> Untitled Git - yocto/meta-hvmpd.git/commitdiff
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 c412ecd593d263616d4f3cfd0c290f0294c34078..f87245675327566679e117f794e76b1d413d0b30 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 84276fe1f8d344f61e36b08e30386cf4ae51cdcd..f3e66ea9847a11c2afaaf6ecdc1b4d0c1d22b802 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
 }