From: Ian Kelling Date: Wed, 13 Jun 2018 03:11:52 +0000 (-0400) Subject: various fixes X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=9288ed79b53a9f276208c59bad353379b5e34914;p=automated-distro-installer various fixes --- diff --git a/README b/README index 0333064..07b54a8 100644 --- a/README +++ b/README @@ -70,7 +70,7 @@ All scripts meant to be used directly are listed here: # Scripts to setup the environment for the install -sudo fai-cd grub.cfg.autodiscover -f -A $BASEFILE_DIR/autodiscover.iso # create autodiscover cd +sudo fai-cd -g grub.cfg.autodiscover -f -A $BASEFILE_DIR/autodiscover.iso # create autodiscover cd mymk-basefile # Create basefiles for various distros arch-pxe # Setup arch pxe boot server from an arch base image fai-redep # Deploy fai configuration to host "faiserver" diff --git a/fai-revm b/fai-revm index 7933377..a110430 100755 --- a/fai-revm +++ b/fai-revm @@ -101,11 +101,11 @@ else sleep 2 else fai-monitor& - if [[ $BASEFILE_DIR ]]; then + if [[ ! $BASEFILE_DIR ]]; then BASEFILE_DIR=/tmp fi if [[ ! -e $BASEFILE_DIR/autodiscover.iso ]]; then - fai-cd grub.cfg.autodiscover -f -A $BASEFILE_DIR/autodiscover.iso + fai-cd -g grub.cfg.autodiscover -f -A $BASEFILE_DIR/autodiscover.iso fi boot_arg="--cdrom $BASEFILE_DIR/autodiscover.iso" e fai-redep diff --git a/myfai-chboot b/myfai-chboot index cbba8b5..db19cb6 100755 --- a/myfai-chboot +++ b/myfai-chboot @@ -33,6 +33,18 @@ case $1 in -h|--help) usage ;; esac +kgped16=false # default +temp=$(getopt -l help hk "$@") || usage 1 +eval set -- "$temp" +while true; do + case $1 in + -k) kgped16=true; shift ;; + -h|--help) usage ;; + --) shift; break ;; + *) echo "$0: Internal error! unexpected args: $*" ; exit 1 ;; + esac +done + host=$(./chost faiserver) ssh root@$host bash -s -- "$@"