Make DATA_PART_ID more generic
authorHugo Villeneuve <hugo@hugovil.com>
Tue, 28 May 2024 18:39:09 +0000 (14:39 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Tue, 24 Sep 2024 19:22:15 +0000 (15:22 -0400)
So that they can be set to anything, like:
  DATA_PART_ID = "UUID=12345..."

This makes it possible to mount an external USB disk as a data
partition for example.

recipes-core/base-files/base-files_%.bbappend

index b9f8906..b3545cf 100644 (file)
@@ -29,7 +29,7 @@ do_install:append () {
     fi
 
     if [ x"${DATA_PART_ID}" != x"" ]; then
-        echo "${ROOT_PARENT_DEV}${ROOT_PART_PREFIX}${DATA_PART_ID}       /mnt/data        auto       defaults              0  0" >> \
+        echo "${DATA_PART_ID}       /mnt/data        auto       defaults              0  0" >> \
             ${D}${sysconfdir}/fstab
     fi