From: Hugo Villeneuve Date: Sun, 22 Jan 2023 22:26:58 +0000 (-0500) Subject: fstab: add optional data partition support X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=01e83479f44fe2ff709cc6c08ae5fbdab1af8015;p=yocto%2Fmeta-hvmpd.git fstab: add optional data partition support --- diff --git a/recipes-core/base-files/base-files_%.bbappend b/recipes-core/base-files/base-files_%.bbappend index f3e66ea..bae34c0 100644 --- a/recipes-core/base-files/base-files_%.bbappend +++ b/recipes-core/base-files/base-files_%.bbappend @@ -24,4 +24,8 @@ do_install:append () { echo "${ROOT_PARENT_DEV}${ROOT_PART_PREFIX}${BOOT_PART_ID} /boot auto defaults 0 0" >> \ ${D}${sysconfdir}/fstab fi + if [ x"${DATA_PART_ID}" != x"" ]; then + echo "${ROOT_PARENT_DEV}${ROOT_PART_PREFIX}${DATA_PART_ID} /mnt/data auto defaults 0 0" >> \ + ${D}${sysconfdir}/fstab + fi }