meta-facebook: add emmc symlink
We want to transition Bletchley off using /mnt/data as the mount
location for the eMMC device, for consistency with legacy systems
where /mnt/data is for persistent configuration changes in production,
but we first need to create an alternative location for transition
purposes. Create the /mnt/emmc as a symlink to /mnt/data to facilitate
the transition.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie7598a9db43859a8a304c9d20db70639b14908b2
diff --git a/meta-facebook/recipes-core/base-files/base-files_%.bbappend b/meta-facebook/recipes-core/base-files/base-files_%.bbappend
index b757af6..a1ff5d8 100644
--- a/meta-facebook/recipes-core/base-files/base-files_%.bbappend
+++ b/meta-facebook/recipes-core/base-files/base-files_%.bbappend
@@ -1,6 +1,8 @@
do_install:append:mf-fb-secondary-emmc() {
# create eMMC mount point
install -m 0755 -d ${D}/mnt/data
+ # Symlink to /mnt/emmc for transition.
+ ln -s /mnt/data ${D}/mnt/emmc
# insert fstab entry for eMMC
FSTAB_EMMC="/dev/mmcblk0 /mnt/data btrfs compress=zstd,discard,nofail,x-systemd.device-timeout=10s 0 0"