@ -24,7 +24,7 @@ build/rootfs/initrd.img: build/rootfs $(FILES) | build
$(CHROOT_CMD) "apt update && apt install -y linux-image-4.19.0-*-amd64"
$(CHROOT_CMD) "update-initramfs -c -kall"
$(FILES): build/rootfs | build
$(FILES): $(FILES_SRC) build/rootfs | build
mkdir -p $(@D)
cp $(shell echo $@ | sed -e 's|^build/rootfs/|src/|') $@
@ -1,7 +1,7 @@
#!/bin/sh
. /scripts/functions
configure_networking
wget http://192.168.14.2/root.squashfs
wget http://192.168.14.2:8014/root.squashfs
mkdir /mnt
modprobe loop
losetup /dev/loop0
@ -2,4 +2,5 @@ FROM debian:buster
RUN apt update && apt install -y xinetd tftpd-hpa busybox
COPY tftp.xinetd.conf /etc/xinetd.d/tftp
COPY http.xinetd.conf /etc/xinetd.d/http
RUN echo "http-boot 8014/tcp" >> /etc/services
CMD ["script", "-c", "/usr/sbin/xinetd -d"]
@ -1,4 +1,4 @@
service http
service http-boot
{
socket_type = stream
protocol = tcp
@ -6,6 +6,6 @@ service http
user = root
server = /bin/busybox
server_args = httpd -if -h /tftpboot
port = 80
port = 8014
flags = IPv4
}