From 9a30136d912b16c90d7cc019317469af321b1532 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 6 Feb 2013 16:42:43 +0100 Subject: [PATCH] installer.sh: x86_64: support copying files from /lib64 --- installer/installer.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installer/installer.sh b/installer/installer.sh index b1675fc..909b727 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -323,14 +323,16 @@ echo -n $"Copying files..." dcop_write $"Copying files..." 15 prog=15 -for d in etc bin boot lib opt sbin srv usr var root; do +for d in etc bin boot lib lib64 opt sbin srv usr var root; do [ ! "$INSTALL_CLONE_MODE" == "1" -a -e /squashfs/$d ] && canonical_dir=/squashfs/$d || canonical_dir=`readlink -f /$d` + [ -e $canonical_dir ] || continue DIR_SPACE=`du -sxm $canonical_dir | awk '{ print $1; }'` TOTAL_SPACE=`expr $TOTAL_SPACE + $DIR_SPACE` done -for d in etc bin boot lib opt sbin srv usr var root; do +for d in etc bin boot lib lib64 opt sbin srv usr var root; do [ ! "$INSTALL_CLONE_MODE" == "1" -a -e /squashfs/$d ] && canonical_dir=/squashfs/$d || canonical_dir=`readlink -f /$d` + [ -e $canonical_dir ] || continue cp -av $canonical_dir $MOUNTPOINT/ | cp_parser || { echo $"Error: cannot copy $canonical_dir to $MOUNTPOINT; aborting." >&2 abort