X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=debian-pxe-preseed;h=bac251aba7349305c1b52f2c09abe4ab50298d39;hb=d4f7a9349a08f60957ca544f3d68a9b97015f6b9;hp=31a038a052a59a969f84e9deda6a406b3f0037a2;hpb=e6c8a36522847eca91819ab3eb656dd824bc3e3c;p=automated-distro-installer diff --git a/debian-pxe-preseed b/debian-pxe-preseed index 31a038a..bac251a 100755 --- a/debian-pxe-preseed +++ b/debian-pxe-preseed @@ -16,6 +16,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# WARNING: outdated! needs docs and update to debian-stretch + x="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace" [[ $EUID == 0 ]] || exec sudo "$BASH_SOURCE" "$@" @@ -26,8 +28,7 @@ e() { echo "$*"; "$@"; } mount_dir=$(mktemp -d) -cleanup() { cd; umount -f $mount_dir; } -_errcatch_cleanup=cleanup +errcatch-cleanup() { cd; umount -f $mount_dir; } e mount -o users wrt:/mnt/usb $mount_dir