Red Hat SATELLITE 5.1.0 RELEASE NOTES Instrukcja Instalacji Strona 255

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 268
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 254
Appendix C. Linux source code 237
function autolog
# Issue an XAUTOLOG command to bring up the new cloned image.
#+--------------------------------------------------------------------------+
{
cp_cmd XAUTOLOG $cloned_linux_id
rc=$?
if [ $? != 0 ]; then
echo "xautolog $cloned_linux_id failed with $rc"
return 0
fi
echo "Booting $cloned_linux_id"
}
#+--------------------------------------------------------------------------+
# main()
# Only root can run this script
[ $(id -u) != "0" ] && echo "Error: you must be root" && exit
# Check if the user has defined any clone.sh configurations
[ -f /etc/sysconfig/clone ] && . /etc/sysconfig/clone
# Set defaults for clone.sh configurations
[ -z "$PROMPT" ] && PROMPT="y"
[ -z "$CLONE_MNT_PT" ] && CLONE_MNT_PT="/mnt/clone"
# If the clone mount point does not exist then we'll create it for you
[ ! -d $CLONE_MNT_PT ] && mkdir -p $CLONE_MNT_PT
# Check if -v was specified on the command line
if [ "$1" = "-v" ] ; then
VERBOSE=1
shift
fi
# If no command line options were provided show the help message
[ $# -eq 0 ] && help
# If one comand line option was provided show the help message
if [ $# -lt 2 ]; then
echo "Error: incorrect number of arguments"
help
fi
# Check that vmcp exists and the module is loaded
check_for_vmcp
master_linux_id=$1
cloned_linux_id=$2
# Check that the master and clone z/VM IDs are logged off.
check_logged_off $master_linux_id
check_logged_off $cloned_linux_id
# Check that the clone's configuration file exists
check_for_conf
# Collect information from the clone's configuration file
get_target_info $@
[ "$PROMPT" = "y" ] && ask_are_you_sure
Przeglądanie stron 254
1 2 ... 250 251 252 253 254 255 256 257 258 259 260 ... 267 268

Komentarze do niniejszej Instrukcji

Brak uwag