aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-20 13:41:08 +0000
committerJohn Crispin <john@openwrt.org>2014-06-20 13:41:08 +0000
commit09273f5c0acdfefdcab4eb44fdfbfea11ce2921a (patch)
tree479674b251a51b1ae3af0cc5b868458a669c6569 /package/base-files
parent005884bff4cfe060a0cbc1df3544750e9dd17dde (diff)
downloadupstream-09273f5c0acdfefdcab4eb44fdfbfea11ce2921a.tar.gz
upstream-09273f5c0acdfefdcab4eb44fdfbfea11ce2921a.tar.bz2
upstream-09273f5c0acdfefdcab4eb44fdfbfea11ce2921a.zip
base-files: regenerate the /lib64 symlink when switching to a ramdisk
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41284
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/lib/upgrade/common.sh2
1 files changed, 2 insertions, 0 deletions
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() { # <command> [...]
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