From 901a933e5c21f7057c4b3058846963bfae2e5b5a Mon Sep 17 00:00:00 2001 From: Drew Moseley Date: Mon, 18 May 2020 16:53:33 -0400 Subject: [PATCH] x86_64: Make sure /lib64 directory/symlink exists. Changelog: None Signed-off-by: Drew Moseley --- configs/generic_x86-64_hdd_config | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configs/generic_x86-64_hdd_config b/configs/generic_x86-64_hdd_config index abe86b3..ba6b803 100644 --- a/configs/generic_x86-64_hdd_config +++ b/configs/generic_x86-64_hdd_config @@ -38,3 +38,14 @@ MENDER_STORAGE_TOTAL_SIZE_MB=16000 # Nothing to copy MENDER_COPY_BOOT_GAP="n" + +function platform_modify() { + # + # Make sure /lib64 exists since the Mender binary requires it. + # Some systems put everything under /lib (ie Yocto) and a simple + # symlink is enough to find everything Mender needs. + # + if [ ! -e work/rootfs/lib64 ]; then + run_and_log_cmd "ln -s /lib work/rootfs/lib64" + fi +}