From 01e83479f44fe2ff709cc6c08ae5fbdab1af8015 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sun, 22 Jan 2023 17:26:58 -0500 Subject: [PATCH] fstab: add optional data partition support --- recipes-core/base-files/base-files_%.bbappend | 4 ++++ 1 file changed, 4 insertions(+) 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 } -- 2.20.1