put temporary config file in working directory
This commit is contained in:
parent
867c397322
commit
5169ab899e
1 changed files with 5 additions and 3 deletions
|
@ -93,13 +93,15 @@ echo "--------------------------"
|
||||||
[ -e "$ROOTDIR" ] && { echo "root directory still exists"; exit; }
|
[ -e "$ROOTDIR" ] && { echo "root directory still exists"; exit; }
|
||||||
|
|
||||||
# create multistrap.conf
|
# create multistrap.conf
|
||||||
echo -n > /tmp/multistrap.conf
|
MULTISTRAPCONF=`tempfile -d . -p multistrap`
|
||||||
|
echo -n > "$MULTISTRAPCONF"
|
||||||
while read line; do
|
while read line; do
|
||||||
eval echo $line >> /tmp/multistrap.conf
|
eval echo $line >> "$MULTISTRAPCONF"
|
||||||
done < $PLATFORM/multistrap.conf
|
done < $PLATFORM/multistrap.conf
|
||||||
|
|
||||||
# download and extract packages
|
# download and extract packages
|
||||||
multistrap -f /tmp/multistrap.conf
|
multistrap -f "$MULTISTRAPCONF"
|
||||||
|
rm -f "$MULTISTRAPCONF"
|
||||||
|
|
||||||
# backup ldconfig and ldd
|
# backup ldconfig and ldd
|
||||||
mv $ROOTDIR/sbin/ldconfig $ROOTDIR/sbin/ldconfig.REAL
|
mv $ROOTDIR/sbin/ldconfig $ROOTDIR/sbin/ldconfig.REAL
|
||||||
|
|
Loading…
Reference in a new issue