X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=archlike-pxe;h=db05bf9178a789fbac79bacabdef39dda0bb5548;hp=ba39c456d4d4a18bb5c1fbd26f22df27be3cd7d1;hb=1b08e82a978c8db76e1ebc67f3b4ae875ba27537;hpb=3d9cc96092cdc8aa05bc95cf83c07bb1af692013 diff --git a/archlike-pxe b/archlike-pxe index ba39c45..db05bf9 100755 --- a/archlike-pxe +++ b/archlike-pxe @@ -1,4 +1,4 @@ -#!/bin/bash -l +#!/bin/bash # Copyright (C) 2016 Ian Kelling # This program is free software; you can redistribute it and/or @@ -17,9 +17,7 @@ # Setup arch pxe boot server from the base image. # - -set -eE -o pipefail -trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR +if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi usage() { cat < airootfs.md5; popd # seems if you've done a pxe boot, mounted the nfs, # then shutdown, it's still busy. -ssh wrt "/etc/init.d/nfsd stop; \ +ssh cmc "/etc/init.d/nfsd stop; \ umount /run/archiso/bootmnt; \ umount /run/parabolaiso/bootmnt; \ rm -rf /mnt/usb/$idir" @@ -90,4 +88,4 @@ ssh wrt "cd /mnt/usb && rm -f tftpboot && ln -s $idir tftpboot" # complicated, so fuck it, we use nfs cuz it's easy rm -rf $idir -s rm -rf squashfs-root +sudo rm -rf squashfs-root