X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=arch-pxe;h=52885b32138928b9330c941396a4c4f655482f96;hb=9ac5bbeccb3e969e29b372656bd51352ff31b0b8;hp=5a26fd70a7f97c9a66bc4035907f15a69ed8ce96;hpb=7f77555b3d92709034fe41919358053c650c71e1;p=automated-distro-installer diff --git a/arch-pxe b/arch-pxe index 5a26fd7..52885b3 100755 --- a/arch-pxe +++ b/arch-pxe @@ -16,19 +16,43 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Setup arch pxe boot server from the base image. -# Requires manually downloading image to /a/opt, and set it's name below. +# set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR +usage() { + cat < airootfs.md5; b +rm -f $iso/$n/i686/airootfs.sfs $iso/$n/boot/i686/${n}iso.img +pushd $(dirname $sfs); md5sum ${sfs##*/} > airootfs.md5; popd # seems if you've done a pxe boot, mounted the nfs, # then shutdown, it's still busy. @@ -59,12 +83,10 @@ ssh wrt "cd /mnt/usb && rm -f tftpboot && ln -s $iso tftpboot" # The default settings in the installer expect to find the NFS at /run/archiso/bootmnt -pxe-server default arch - -# background: -# great documentation at https://wiki.archlinux.org/index.php/PXE -# background: arch can do netboot like ubuntu etc, but the docs look a little complicated, so fuck it, -# we use nfs cuz it's easy +# background: great documentation at +# https://wiki.archlinux.org/index.php/PXE +# arch can do netboot like ubuntu etc, but the docs look a little +# complicated, so fuck it, we use nfs cuz it's easy rm -rf $iso s rm -rf squashfs-root