diff --git a/install-dependencies.sh b/install-dependencies.sh index bb97b97..ae00ba0 100755 --- a/install-dependencies.sh +++ b/install-dependencies.sh @@ -9,7 +9,18 @@ set -u set -x main() { - sudo apt install smartmontools lshw hwinfo dmidecode + sudo apt update && \ + apt install -y \ + smartmontools \ + lshw \ + hwinfo \ + dmidecode \ + inxi \ + python3 \ + pipenv \ + sudo \ + debootstrap \ + qemu-system } main "${@}" diff --git a/pxe/Makefile b/pxe/Makefile index febfecb..a650e01 100644 --- a/pxe/Makefile +++ b/pxe/Makefile @@ -1,40 +1,8 @@ -include .env -export $(shell sed 's/=.*//' .env) - .PHONY: test_pxe - -clean: - @if [ ! -f .env ]; then \ - echo ".env file not found!."; \ - exit 1; \ - fi - - @echo "Purging PXE files & packages -- THIS DOES NOT DELETE /SNAPSHOTS" - - @echo "Deleting NFS directory: $(nfs_path)" - @rm -rf $(nfs_path) - - @echo "Deleting TFTP directory: $(tftp_path)" - @rm -rf $(tftp_path) - - @echo "Deleting NFS directory: $(nfs_path)" - - #TODO: all pxe packages on one same place - @echo "purging PXE packages: " - - @sudo apt-get remove --purge dnsmasq nfs-kernel-server syslinux - @echo "Cleaning up package leftovers..." - @sudo apt-get autoremove -y - @sudo apt-get clean - - @echo "clean done" - - test_pxe: qemu-system-x86_64 -m 1G -boot n -netdev user,id=mynet0,tftp=/srv/pxe-tftp,bootfile=pxelinux.0 -device virtio-net,netdev=mynet0 -install_qemu: - sudo apt-get install qemu-system - +# TODO not very convinced on having this, but ok right now +.PHONY: install_pxe_debug install_pxe_debug: DEBUG=true ./install-pxe.sh