Compare commits
No commits in common. "b35c971fc75298de813db8d2b25b8dc607b3655f" and "09b7f085effa5ea775c98c20186f43d1cdbcf96f" have entirely different histories.
b35c971fc7
...
09b7f085ef
|
@ -448,7 +448,6 @@ install_requirements() {
|
||||||
grub-pc-bin
|
grub-pc-bin
|
||||||
grub-efi-amd64-bin
|
grub-efi-amd64-bin
|
||||||
ovmf
|
ovmf
|
||||||
shim-signed
|
|
||||||
grub-efi-amd64-signed'
|
grub-efi-amd64-signed'
|
||||||
${SUDO} apt-get install -y \
|
${SUDO} apt-get install -y \
|
||||||
${image_deps} \
|
${image_deps} \
|
||||||
|
|
38
pxe/Makefile
38
pxe/Makefile
|
@ -1,40 +1,2 @@
|
||||||
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:
|
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
|
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
|
|
||||||
|
|
||||||
install_pxe_debug:
|
|
||||||
DEBUG=true ./install-pxe.sh
|
|
||||||
|
|
Loading…
Reference in New Issue