summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-13 13:45:26 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-13 13:45:26 -0700
commit8ce17085993849a8f13a5c2a7d8d5312cd62ff7f (patch)
tree608cb59a9ac77564dd84951be8db9511f582f00e /scripts
parent499afdae260c9ac3f179f3fc204308eb2d57b796 (diff)
downloadvyatta-cfg-quagga-8ce17085993849a8f13a5c2a7d8d5312cd62ff7f.tar.gz
vyatta-cfg-quagga-8ce17085993849a8f13a5c2a7d8d5312cd62ff7f.zip
install-system can only run from livecd
Bugfix 3726 Only allow install-system from livecd, since it has hardcoded assumptions about squashfs, etc.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install-system6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/install-system b/scripts/install-system
index 20b9f6a3..625cea73 100644
--- a/scripts/install-system
+++ b/scripts/install-system
@@ -1185,6 +1185,12 @@ progress_indicator () {
##### Main
##
+
+if [ ! -d /live/image -o -w /live/image ]; then
+ echo "install-system can only be run from livecd"
+ exit 1
+fi
+
# clean up existing log files
if [ -f $INSTALL_LOG.old ]; then
rm -f $INSTALL_LOG.old