installer.sh: make INSTALL_CLONE_MODE check more clear
This commit is contained in:
parent
c515911c51
commit
c9b67d6520
@ -324,14 +324,14 @@ dcop_write $"Copying files..." 15
|
||||
prog=15
|
||||
|
||||
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`
|
||||
[ "$INSTALL_CLONE_MODE" != "1" ] && 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 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`
|
||||
[ "$INSTALL_CLONE_MODE" != "1" ] && 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
|
||||
|
Loading…
Reference in New Issue
Block a user