Browse Source

base-files: regenerate the /lib64 symlink when switching to a ramdisk

Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 41284
John Crispin 11 years ago
parent
commit
09273f5c0a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/base-files/files/lib/upgrade/common.sh

+ 2 - 0
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