X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=arch-pxe;h=78205442c62e4b3fe9f1623e43ce6f3c6cf1d31d;hp=e480b5d7173ebb8d1c0dc639494c9180d18a19b9;hb=5ccaac3779f6bcf991e6ab0f7d545b37e3a4db63;hpb=e6c8a36522847eca91819ab3eb656dd824bc3e3c diff --git a/arch-pxe b/arch-pxe index e480b5d..7820544 100755 --- a/arch-pxe +++ b/arch-pxe @@ -27,7 +27,8 @@ Usage: ${0##*/} Setup arch pxe boot server from the base image Requires manually downloading image. Image path is hardcoded below to -/a/opt/image_name. Run pxe-server HOST|default arch to enable it. +/a/opt/image_name without .iso on the end. adjust the code for a new image. After this, run pxe-server. +HOST|default arch to enable it. -h|--help Print help and exit. EOF @@ -42,11 +43,16 @@ esac x="$(readlink -f "$BASH_SOURCE")" script_dir="${x%/*}" cd /a/opt -iso="archlinux-2017.02.01-dual" -sfs=$iso/arch/x86_64/airootfs.sfs +iso="parabola-systemd-cli-x86_64-netinstall-2017.10.18-00.07-alpha" rm -rf $iso ex $iso.iso -sed -i --follow-symlinks -f - $iso/arch/boot/syslinux/archiso_pxe64.cfg < airootfs.md5; popd # seems if you've done a pxe boot, mounted the nfs,