X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=pxe-server;h=d693642886b6c22d10cdb5d428cb1d777a7d173c;hp=b1700beab398c08cdc9b1a9b60b99112209b0008;hb=9288ed79b53a9f276208c59bad353379b5e34914;hpb=527f50b38e4a94a771215131cafe016a97ba83cd diff --git a/pxe-server b/pxe-server index b1700be..d693642 100755 --- a/pxe-server +++ b/pxe-server @@ -41,6 +41,7 @@ TYPE One of arch, plain, fai. after the 2nd. I can't remember exactly why this caused a problem, but I'm hoping the sleep will take care of it. -S sets FAI_ACTION=sysinfo, see myfai-chboot for more info. +-k Pass -k to myfai-chboot. -w Setup pxe, then wait like -a. -h|--help Print help and exit @@ -64,6 +65,7 @@ dhcp=true redep=true acks=2 wait=false +chboot_args=() temp=$(getopt -l help adrSwh "$@") || usage 1 eval set -- "$temp" while true; do @@ -71,7 +73,8 @@ while true; do -a) wait=true; set=false; shift ;; -d) dhcp=false; shift ;; -r) redep=false; shift ;; - -S) chboot_arg=-S; shift ;; + -S) chboot_args+=(-S); shift ;; + -k) chboot_args+=(-k); shift ;; -w) wait=true; set=true; shift ;; -h|--help) usage ;; --) shift; break ;; @@ -157,7 +160,7 @@ $([[ $type == arch ]] && echo arch-pxe-mount)" if $set; then set-pxe if [[ $type == fai ]]; then - e myfai-chboot $chboot_arg $host + e myfai-chboot ${chboot_args[@]} $host if $redep; then e fai-redep fi