From 8ce17085993849a8f13a5c2a7d8d5312cd62ff7f Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 13 Oct 2008 13:45:26 -0700 Subject: install-system can only run from livecd Bugfix 3726 Only allow install-system from livecd, since it has hardcoded assumptions about squashfs, etc. --- scripts/install-system | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3