From 09273f5c0acdfefdcab4eb44fdfbfea11ce2921a Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 20 Jun 2014 13:41:08 +0000 Subject: [PATCH] base-files: regenerate the /lib64 symlink when switching to a ramdisk Signed-off-by: John Crispin SVN-Revision: 41284 --- package/base-files/files/lib/upgrade/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 2e92b5a0a3..b641f55156 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -76,6 +76,8 @@ run_ramfs() { # [...] done install_file /etc/resolv.conf /lib/functions.sh /lib/functions/*.sh /lib/upgrade/*.sh $RAMFS_COPY_DATA + [ -L "/lib64" ] && ln -s /lib $RAM_ROOT/lib64 + supivot $RAM_ROOT /mnt || { echo "Failed to switch over to ramfs. Please reboot." exit 1