base-files: Add fstab for eMMC
For eMMC, let the initramfs mount the read-only rootfs,
read-write, and overlay filesystems, then have fstab setup any
additional mounts such as bind mounts.
Change-Id: I25a59bd320bafb7c1086aae8cf65000e8531d7f8
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/recipes-core/base-files/base-files/df-mmc/fstab b/recipes-core/base-files/base-files/df-mmc/fstab
new file mode 100644
index 0000000..4a07668
--- /dev/null
+++ b/recipes-core/base-files/base-files/df-mmc/fstab
@@ -0,0 +1,9 @@
+# openbmc fstab
+
+/dev/root / auto defaults 1 1
+proc /proc proc defaults 0 0
+devpts /dev/pts devpts mode=0620,gid=5 0 0
+tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0
+tmpfs /var/volatile tmpfs defaults 0 0
+tmpfs /media tmpfs defaults 0 0
+/var/persist/home /home none bind 0 0
diff --git a/recipes-core/base-files/base-files_%.bbappend b/recipes-core/base-files/base-files_%.bbappend
index c77cfef..60d2bd6 100644
--- a/recipes-core/base-files/base-files_%.bbappend
+++ b/recipes-core/base-files/base-files_%.bbappend
@@ -1,4 +1,5 @@
FILESEXTRAPATHS_prepend_df-obmc-ubi-fs := "${THISDIR}/${PN}/df-ubi:"
+FILESEXTRAPATHS_prepend_df-phosphor-mmc := "${THISDIR}/${PN}/df-mmc:"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"