[Spacewalk-list] Help with kick-start.

Josh Preston JoshPreston at dswinc.com
Thu Dec 20 23:20:43 UTC 2012


This one works for me :-)

---- snippet


# This is the trick - automatically switch to 6th console
# and redirect all input/output
#raw
exec < /dev/tty6 > /dev/tty6 2> /dev/tty6
chvt 6
#end raw
#set $redhat_management_key = $getVar("$redhat_management_key", "")
KEYS="$redhat_management_key"
echo "Please enter all applicable system activation keys."
echo ""
echo "For a complete and up to date list of activation keys, refer to the
following:"
echo ""
echo "https://$redhat_management_server/rhn/activationkeys/List.do"
echo ""
echo "Enter all activation keys one per line; blank line ends input"
#if $getVar("$redhat_management_key", "") != ""
echo "Currently Active: $redhat_management_key"
#end if
#raw
while read -t 60 I; do
    if [ "" == "$I" ]; then
        break
    fi
    KEYS="${KEYS},$I"
done

echo $KEYS | sed -e s/^\,//g | sed -e s/\,$//g >> /tmp/key

# Then switch back to Anaconda on the first console
chvt 1
exec < /dev/tty1 > /dev/tty1 2> /dev/tty1

#end raw


---- snippet





More information about the Spacewalk-list mailing list