summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-18 16:39:45 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-18 16:39:45 +0100
commit4fe068cf41149b5eb52f12fb1c063cab8ecb1169 (patch)
treede6f31d1e6242fa53d4f653613e202da9316cc3c /src
parentc5e7eea26c1ce2305012ab67d88e54477e389ccd (diff)
fix for badly placed var_TARGET_DIR assignment
Diffstat (limited to 'src')
-rw-r--r--src/core/procedures/interactive6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/procedures/interactive b/src/core/procedures/interactive
index 6ee7023..d4c3cf6 100644
--- a/src/core/procedures/interactive
+++ b/src/core/procedures/interactive
@@ -4,8 +4,6 @@ depend_procedure core base # esp for auto_{network,locale,fstab}, intro and set_
# This is a port of the original /arch/setup script. It doesn't use aif phases but uses it's own menu-based flow (phase) control
-
-var_TARGET_DIR="/mnt"
EDITOR=
BLOCK_ROLLBACK_USELESS=1
@@ -115,7 +113,9 @@ worker_configure_system()
# /etc/pacman.d/mirrorlist
# add installer-selected mirror to the top of the mirrorlist
if [ "$var_PKG_SOURCE_TYPE" = "ftp" -a "${SYNC_URL}" != "" ]; then
- awk "BEGIN { printf(\"# Mirror used during installation\nServer = "${SYNC_URL}"\n\n\") } 1 " "${var_TARGET_DIR}/etc/pacman.d/mirrorlist"
+ debug "Adding choosen mirror (${SYNC_URL}) to ${var_TARGET_DIR}/$var_MIRRORLIST"
+ mirrorlist=`awk "BEGIN { printf(\"# Mirror used during installation\nServer = "${SYNC_URL}"\n\n\") } 1 " "${var_TARGET_DIR}/$var_MIRRORLIST"`
+ echo "$mirrorlist" > "${var_TARGET_DIR}/$var_MIRRORLIST" #TODO: test this, this may not work
fi
# /etc/rc.conf