moved http to 8014

Szymon Karpiński 7 years ago
parent 8f49275872
commit 57c2a0d373
  1. 2
      linux/Makefile
  2. 2
      linux/src/etc/initramfs-tools/scripts/local-top/download.sh
  3. 1
      tftp/Dockerfile
  4. 4
      tftp/http.xinetd.conf

@ -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) "apt update && apt install -y linux-image-4.19.0-*-amd64"
$(CHROOT_CMD) "update-initramfs -c -kall" $(CHROOT_CMD) "update-initramfs -c -kall"
$(FILES): build/rootfs | build $(FILES): $(FILES_SRC) build/rootfs | build
mkdir -p $(@D) mkdir -p $(@D)
cp $(shell echo $@ | sed -e 's|^build/rootfs/|src/|') $@ cp $(shell echo $@ | sed -e 's|^build/rootfs/|src/|') $@

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
. /scripts/functions . /scripts/functions
configure_networking configure_networking
wget http://192.168.14.2/root.squashfs wget http://192.168.14.2:8014/root.squashfs
mkdir /mnt mkdir /mnt
modprobe loop modprobe loop
losetup /dev/loop0 losetup /dev/loop0

@ -2,4 +2,5 @@ FROM debian:buster
RUN apt update && apt install -y xinetd tftpd-hpa busybox RUN apt update && apt install -y xinetd tftpd-hpa busybox
COPY tftp.xinetd.conf /etc/xinetd.d/tftp COPY tftp.xinetd.conf /etc/xinetd.d/tftp
COPY http.xinetd.conf /etc/xinetd.d/http COPY http.xinetd.conf /etc/xinetd.d/http
RUN echo "http-boot 8014/tcp" >> /etc/services
CMD ["script", "-c", "/usr/sbin/xinetd -d"] CMD ["script", "-c", "/usr/sbin/xinetd -d"]

@ -1,4 +1,4 @@
service http service http-boot
{ {
socket_type = stream socket_type = stream
protocol = tcp protocol = tcp
@ -6,6 +6,6 @@ service http
user = root user = root
server = /bin/busybox server = /bin/busybox
server_args = httpd -if -h /tftpboot server_args = httpd -if -h /tftpboot
port = 80 port = 8014
flags = IPv4 flags = IPv4
} }

Loading…
Cancel
Save