summaryrefslogtreecommitdiffstats
path: root/release/scripts/base-install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/base-install.sh')
-rwxr-xr-xrelease/scripts/base-install.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/base-install.sh b/release/scripts/base-install.sh
index 8fab5c2..6b32b03 100755
--- a/release/scripts/base-install.sh
+++ b/release/scripts/base-install.sh
@@ -4,9 +4,10 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
-echo "You are about to extract the base distribution into / - are you SURE"
+
+echo "You are about to extract the base distribution into ${DESTDIR:-/} - are you SURE"
echo -n "you want to do this over your installed system (y/n)? "
read ans
if [ "$ans" = "y" ]; then
- cat bin.?? | tar --unlink -xpzf - -C /
+ cat bin.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
fi
OpenPOWER on IntegriCloud