From f136d935cd39b6842ac746b7a70a684d81a8cb9d Mon Sep 17 00:00:00 2001 From: Brian C. Lane Date: Oct 28 2014 17:03:02 +0000 Subject: Warn users about liveinst usage of --updates (#1153550) liveinst is a thin wrapper over anaconda. It can download updates using --updates= but cannot understand --updates without the =. Detect this and tell the user. --- diff --git a/data/liveinst/liveinst b/data/liveinst/liveinst index 7f67e38..3436642 100755 --- a/data/liveinst/liveinst +++ b/data/liveinst/liveinst @@ -113,6 +113,17 @@ for opt in `cat /proc/cmdline` $*; do --inst.updates=*) UPDATES="${opt#--inst.updates=}" ;; + --updates) + title="updates error" + text="liveinst requires --updates= instead of --updates " + if which zenity &> /dev/null; then + zenity --error --no-markup --title="$title" --text="$text" + else + echo "$title" >&2 + echo "$text" >&2 + fi + exit 1 + ;; ks=*|kickstart=*|--ks=*|--kickstart=*|inst.ks=*|--inst.ks=*|inst.kickstart=*|--inst-kickstart=*) title="Configuration not supported" text="Kickstart is not supported on live installs. This installation will continue interactively."