summaryrefslogtreecommitdiff
path: root/scripts/install-system
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install-system')
-rwxr-xr-xscripts/install-system16
1 files changed, 9 insertions, 7 deletions
diff --git a/scripts/install-system b/scripts/install-system
index d816c159..53b654ed 100755
--- a/scripts/install-system
+++ b/scripts/install-system
@@ -1336,6 +1336,15 @@ if [ -z "$INSTALL_METHOD" ]; then
echo
fi
+# Unless doing union install, must be from live cd
+if [ "$INSTALL_METHOD" == "union" -o "$INSTALL_METHOD" == "u" ] &&
+ [ ! -d /live/image -o -w /live/image ]
+then
+ echo "install-system can only be run from livecd"
+ echo "(except if doing union install)"
+ exit 1
+fi
+
# TODO: Note installs assume an LBA BIOS. So no boot partition currently.
# also note that we are not creating a swap partition right now.
if [ "$INSTALL_METHOD" == "parted" ] || [ "$INSTALL_METHOD" == "p" ]; then
@@ -1368,13 +1377,6 @@ elif [ "$INSTALL_METHOD" == "vyatta" ]; then
sleep 5
fi
-if [ ! -d /live/image -o -w /live/image ]; then
- if [ -z $UNION ]; then
- echo "install-system can only be run from livecd"
- exit 1
- fi
-fi
-
# Install the root filesystem
install_root_filesystem "$ROOT_PARTITION"