base-files: regenerate the /lib64 symlink when switching to a ramdisk
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 20 Jun 2014 13:41:08 +0000 (13:41 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 20 Jun 2014 13:41:08 +0000 (13:41 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41284 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/lib/upgrade/common.sh

index 2e92b5a..b641f55 100644 (file)
@@ -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