summaryrefslogtreecommitdiffstats
path: root/liveinst/liveinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'liveinst/liveinst.sh')
-rw-r--r--liveinst/liveinst.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/liveinst/liveinst.sh b/liveinst/liveinst.sh
new file mode 100644
index 000000000..de8fdfa4a
--- /dev/null
+++ b/liveinst/liveinst.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Simple script to kick off an install from a live CD
+#
+
+if [ -z "$LIVE_MOUNT_PATH" ]; then
+ LIVE_MOUNT_PATH="/mnt/livecd"
+fi
+
+if [ ! -f /.livecd-configured ]; then
+ zenity --error --title="Not a Live CD" --text "Can't do live CD installation unless running on a live CD"
+fi
+
+export ANACONDA_PRODUCTNAME="Fedora"
+export ANACONDA_PRODUCTVERSION=$(rpm -q fedora-release --qf "%{VERSION}")
+export ANACONDA_BUGURL="https://bugzilla.redhat.com/bugzilla/"
+
+export PATH=/sbin:/usr/sbin:$PATH
+
+if [ -z "$LANG" ]; then
+ LANG="en_US.UTF-8"
+fi
+
+# eventually, we might want to allow a more "normal" install path
+/usr/sbin/anaconda --method=livecd://$LIVE_MOUNT_PATH --lang $LANG