From 808d83f9a5c68a6a5abd232f32a8fd51eb2fef89 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 11:29:42 +0200 Subject: [PATCH 01/17] Create a shim for systemctl in container Implement a shim for systemctl to handle service actions in a container environment, with a critical fix to ignore 'samba-ad-dc' to prevent RPC conflicts. --- root/usr/local/bin/systemctl | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 root/usr/local/bin/systemctl diff --git a/root/usr/local/bin/systemctl b/root/usr/local/bin/systemctl new file mode 100644 index 0000000..a9a3d27 --- /dev/null +++ b/root/usr/local/bin/systemctl @@ -0,0 +1,32 @@ +#!/bin/bash +# Gefälschtes systemctl für den Container + +ACTION=$1 +SERVICE=$2 + +# .service Endung entfernen, falls vorhanden +SERVICE=${SERVICE%.service} + +# CRITICAL FIX: samba-ad-dc komplett ignorieren, um den RPC-Konflikt zu verhindern! +if [[ "$SERVICE" == "samba-ad-dc" ]]; then + echo "Shim: Blocked samba-ad-dc to prevent RPC collision." + exit 0 +fi + +case "$ACTION" in + start|stop|restart|status) + if [ -x "/etc/init.d/$SERVICE" ]; then + /etc/init.d/$SERVICE "$ACTION" + else + service "$SERVICE" "$ACTION" 2>/dev/null || echo "Shim: Service $SERVICE not found" + fi + ;; + enable|disable|daemon-reload|unmask|mask) + # Diese Befehle sind im Container irrelevant, wir melden einfach Erfolg + exit 0 + ;; + *) + echo "Shim: Unknown command $ACTION for $SERVICE - ignoring." + exit 0 + ;; +esac From 7e61613ad158cbad2ebca7fc836967d73d1c0ff4 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 11:30:38 +0200 Subject: [PATCH 02/17] Add permissions and symlink for systemctl Added executable permissions to systemctl and created a symlink. --- dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/dockerfile b/dockerfile index 4b2c7d9..04f98c9 100644 --- a/dockerfile +++ b/dockerfile @@ -4,6 +4,7 @@ ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.6.0/s6- ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.6.0/s6-overlay-aarch64.tar.xz /tmp RUN tar -C / -Jxpf /tmp/s6-overlay-aarch64.tar.xz && tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz && mkdir /app && mkdir /app/RPi-PXE-Server COPY root/ / +RUN chmod +x /usr/local/bin/systemctl && ln -sf /usr/local/bin/systemctl /usr/bin/systemctl VOLUME /app/RPi-PXE-Server VOLUME /srv VOLUME /etc/samba From 6b803e71cd5286c9b31f07f16758727443bae809 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 12:12:44 +0200 Subject: [PATCH 03/17] Add script to start PXE-related services --- root/etc/cont-init.d/99-start-pxe-services.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 root/etc/cont-init.d/99-start-pxe-services.sh diff --git a/root/etc/cont-init.d/99-start-pxe-services.sh b/root/etc/cont-init.d/99-start-pxe-services.sh new file mode 100644 index 0000000..fdeb275 --- /dev/null +++ b/root/etc/cont-init.d/99-start-pxe-services.sh @@ -0,0 +1,11 @@ +#!/command/with-contenv bash + +echo "Starte PXE-relevante Dienste via systemctl-shim..." + +# Hier alle Dienste auflisten, die der PXE-Server braucht +systemctl start rpcbind +systemctl start nfs-kernel-server +systemctl start dnsmasq +systemctl start lighttpd +systemctl start smbd +systemctl start nmbd From 5afd01fecab8fa7a1015161c03262afe3b412c56 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 12:16:26 +0200 Subject: [PATCH 04/17] Add script to start PXE services on initialization This script starts essential PXE services using systemctl. --- .../s6-rc.d/cont-init.d/99-start-pxe-services.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 root/etc/s6-overlay/s6-rc.d/cont-init.d/99-start-pxe-services.sh diff --git a/root/etc/s6-overlay/s6-rc.d/cont-init.d/99-start-pxe-services.sh b/root/etc/s6-overlay/s6-rc.d/cont-init.d/99-start-pxe-services.sh new file mode 100644 index 0000000..fdeb275 --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/cont-init.d/99-start-pxe-services.sh @@ -0,0 +1,11 @@ +#!/command/with-contenv bash + +echo "Starte PXE-relevante Dienste via systemctl-shim..." + +# Hier alle Dienste auflisten, die der PXE-Server braucht +systemctl start rpcbind +systemctl start nfs-kernel-server +systemctl start dnsmasq +systemctl start lighttpd +systemctl start smbd +systemctl start nmbd From 1821912e3e682917afd951432213bb8aadab9b5d Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 12:40:14 +0200 Subject: [PATCH 05/17] Rename root/etc/cont-init.d/99-start-pxe-services.sh to root/cont-init.d/99-start-pxe-services.sh --- root/{etc => }/cont-init.d/99-start-pxe-services.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename root/{etc => }/cont-init.d/99-start-pxe-services.sh (100%) diff --git a/root/etc/cont-init.d/99-start-pxe-services.sh b/root/cont-init.d/99-start-pxe-services.sh similarity index 100% rename from root/etc/cont-init.d/99-start-pxe-services.sh rename to root/cont-init.d/99-start-pxe-services.sh From bd585216eaf293005e2d58033f8b2e78b9fc9ec3 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 12:43:32 +0200 Subject: [PATCH 06/17] Rename root/cont-init.d/99-start-pxe-services.sh to root/etc/cont-init.d/99-start-pxe-services.sh --- root/{ => etc}/cont-init.d/99-start-pxe-services.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename root/{ => etc}/cont-init.d/99-start-pxe-services.sh (100%) diff --git a/root/cont-init.d/99-start-pxe-services.sh b/root/etc/cont-init.d/99-start-pxe-services.sh similarity index 100% rename from root/cont-init.d/99-start-pxe-services.sh rename to root/etc/cont-init.d/99-start-pxe-services.sh From 3ad711cf1e24269cb54fd4b53fcf2e8f01586fae Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:01:55 +0200 Subject: [PATCH 07/17] Fix rpcbind by creating missing directory Create missing directory for rpcbind service. --- root/etc/cont-init.d/99-start-pxe-services.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/99-start-pxe-services.sh b/root/etc/cont-init.d/99-start-pxe-services.sh index fdeb275..eb32cde 100644 --- a/root/etc/cont-init.d/99-start-pxe-services.sh +++ b/root/etc/cont-init.d/99-start-pxe-services.sh @@ -2,7 +2,9 @@ echo "Starte PXE-relevante Dienste via systemctl-shim..." -# Hier alle Dienste auflisten, die der PXE-Server braucht +# Fix für rpcbind: Fehlendes Verzeichnis erstellen +mkdir -p /run/sendsigs.omit.d + systemctl start rpcbind systemctl start nfs-kernel-server systemctl start dnsmasq From e0890210925c73a262d1bcde9055f58da006bd23 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:23:16 +0200 Subject: [PATCH 08/17] Update and rename root/etc/s6-overlay/s6-rc.d/cont-init.d/99-start-pxe-services.sh to 0 --- 0 | 1 + .../s6-rc.d/cont-init.d/99-start-pxe-services.sh | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) create mode 100644 0 delete mode 100644 root/etc/s6-overlay/s6-rc.d/cont-init.d/99-start-pxe-services.sh diff --git a/0 b/0 new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/0 @@ -0,0 +1 @@ + diff --git a/root/etc/s6-overlay/s6-rc.d/cont-init.d/99-start-pxe-services.sh b/root/etc/s6-overlay/s6-rc.d/cont-init.d/99-start-pxe-services.sh deleted file mode 100644 index fdeb275..0000000 --- a/root/etc/s6-overlay/s6-rc.d/cont-init.d/99-start-pxe-services.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/command/with-contenv bash - -echo "Starte PXE-relevante Dienste via systemctl-shim..." - -# Hier alle Dienste auflisten, die der PXE-Server braucht -systemctl start rpcbind -systemctl start nfs-kernel-server -systemctl start dnsmasq -systemctl start lighttpd -systemctl start smbd -systemctl start nmbd From 2d7b50a51e479abe3006ba9fe5cb5ef058b3aee5 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:24:40 +0200 Subject: [PATCH 09/17] Rename root/etc/s6-overlay/s6-rc.d/user/contents.d/init-pxe-boot-config to 1 --- 1 | 1 + root/etc/s6-overlay/s6-rc.d/user/contents.d/init-pxe-boot-config | 0 2 files changed, 1 insertion(+) create mode 100755 1 delete mode 100755 root/etc/s6-overlay/s6-rc.d/user/contents.d/init-pxe-boot-config diff --git a/1 b/1 new file mode 100755 index 0000000..d3f5a12 --- /dev/null +++ b/1 @@ -0,0 +1 @@ + diff --git a/root/etc/s6-overlay/s6-rc.d/user/contents.d/init-pxe-boot-config b/root/etc/s6-overlay/s6-rc.d/user/contents.d/init-pxe-boot-config deleted file mode 100755 index e69de29..0000000 From 50f7712b2c15a66a829227fac0fe7921cd1487a4 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:25:12 +0200 Subject: [PATCH 10/17] Rename root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/up to 2 --- root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/up => 2 | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/up => 2 (100%) diff --git a/root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/up b/2 similarity index 100% rename from root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/up rename to 2 From f884a4c9558857e8735e5c971921b0cff5e7e70a Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:25:30 +0200 Subject: [PATCH 11/17] Rename root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/type to 3 --- root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/type => 3 | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/type => 3 (100%) diff --git a/root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/type b/3 similarity index 100% rename from root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/type rename to 3 From 8f2f69d7ab3e271ca1560b71390921ed01b88118 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:25:44 +0200 Subject: [PATCH 12/17] Rename root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/run to 4 --- root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/run => 4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/run => 4 (82%) diff --git a/root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/run b/4 similarity index 82% rename from root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/run rename to 4 index bea2bdd..a60c6ee 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/run +++ b/4 @@ -3,4 +3,4 @@ systemctl start chrony dnsmasq lighttpd nfs-mountd nfs-server nfs-kernel-server nmbd rsync samba-ad-dc smbd systemctl stop rpcbind -systemctl status chrony dnsmasq lighttpd nfs-mountd nfs-server nfs-kernel-server nmbd rsync samba-ad-dc smbd \ No newline at end of file +systemctl status chrony dnsmasq lighttpd nfs-mountd nfs-server nfs-kernel-server nmbd rsync samba-ad-dc smbd From 81fcde4a7ec1b51f3fb202d8a343febb41848c81 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:26:28 +0200 Subject: [PATCH 13/17] Rename root/etc/s6-overlay/.DS_Store to 5 --- root/etc/s6-overlay/.DS_Store => 5 | Bin 1 file changed, 0 insertions(+), 0 deletions(-) rename root/etc/s6-overlay/.DS_Store => 5 (100%) diff --git a/root/etc/s6-overlay/.DS_Store b/5 similarity index 100% rename from root/etc/s6-overlay/.DS_Store rename to 5 From 9c5ef65444953ff53561af292751ac871a682966 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:26:43 +0200 Subject: [PATCH 14/17] Rename root/etc/.DS_Store to 6 --- root/etc/.DS_Store => 6 | Bin 1 file changed, 0 insertions(+), 0 deletions(-) rename root/etc/.DS_Store => 6 (100%) diff --git a/root/etc/.DS_Store b/6 similarity index 100% rename from root/etc/.DS_Store rename to 6 From 7c07bbf9b0533c11fbd1e6dc10b8950e9d59d4e3 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:36:57 +0200 Subject: [PATCH 15/17] delete old files --- 0 | 1 - 1 | 1 - 2 | 1 - 3 | 1 - 4 | 6 ------ 5 | Bin 6148 -> 0 bytes 6 | Bin 6148 -> 0 bytes 7 files changed, 10 deletions(-) delete mode 100644 0 delete mode 100755 1 delete mode 100755 2 delete mode 100755 3 delete mode 100755 4 delete mode 100755 5 delete mode 100755 6 diff --git a/0 b/0 deleted file mode 100644 index 8b13789..0000000 --- a/0 +++ /dev/null @@ -1 +0,0 @@ - diff --git a/1 b/1 deleted file mode 100755 index d3f5a12..0000000 --- a/1 +++ /dev/null @@ -1 +0,0 @@ - diff --git a/2 b/2 deleted file mode 100755 index b94ea84..0000000 --- a/2 +++ /dev/null @@ -1 +0,0 @@ -/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/run diff --git a/3 b/3 deleted file mode 100755 index bdd22a1..0000000 --- a/3 +++ /dev/null @@ -1 +0,0 @@ -oneshot diff --git a/4 b/4 deleted file mode 100755 index a60c6ee..0000000 --- a/4 +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -systemctl start chrony dnsmasq lighttpd nfs-mountd nfs-server nfs-kernel-server nmbd rsync samba-ad-dc smbd -systemctl stop rpcbind - -systemctl status chrony dnsmasq lighttpd nfs-mountd nfs-server nfs-kernel-server nmbd rsync samba-ad-dc smbd diff --git a/5 b/5 deleted file mode 100755 index ca31a7489669099575157b7519608b4fb604781d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}N6?5T4P33tskEJmm!xdhwi=?Gy9`O1q$kmMs-8p5haD&{y((y!BT4O=enL znyVr*1IahZ{3QFqCK)2)$#Xj*s)?vV6J${eBGX0Fg*gv^oO3Mcj@s43XtwMMiT>i0 z?EQ+K=$>wAOW*dt-q?2c=N{{>X%?$)0ZVoB^8Ph_{T!FP+LPB?{jnPty*7`+)^W8t z(zrMS&VV!E3^)Tn$^hJ5S<|@R?wt`&KICaLv5nX3334lK~QY85eTGorr;!8gO-vz@#X`{3L{Y< zgwTv+zp>|I?~~T{5E0MrR#T!05jALnEJ{UWx@y{U=P{5q$30!r4Rv%*+e)IpI3;`E zr&~IqW9n&V|J~JeanY|gw&^4J)~esSZ`)ww2ySd(7zaV8u zFc1s`1HnKr@FNW1&K7A745JSQf`MS*g8?}o5}IIkEQWe?pwkinD9>mW=u%5aOmfVQ z#Sj(p6!qQfsc W7DLG*^BN9}hkz0iT`=$q47>sDKr&AN From d1e6da99305a779c8da88fe35ba3b5341d50afc1 Mon Sep 17 00:00:00 2001 From: Pi-Farm <43029891+pi-farm@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:38:21 +0200 Subject: [PATCH 16/17] ignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index e05fcc9..ddffca1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ srv/ RPi-PXE-Server notes samba/ +.DS_Store \ No newline at end of file From 43f90f907a6ea270e583468d719826c90ba8a7fc Mon Sep 17 00:00:00 2001 From: pi-farm Date: Thu, 1 Oct 2026 16:33:39 +0200 Subject: [PATCH 17/17] switch to debian:12-slim as baseimage --- docker-compose.yml | 1 + dockerfile | 7 +++--- init-script.sh | 21 +++++++++++++++--- root/.DS_Store | Bin 6148 -> 0 bytes root/etc/cont-init.d/99-start-pxe-services.sh | 14 ++++++++++-- 5 files changed, 35 insertions(+), 8 deletions(-) delete mode 100755 root/.DS_Store mode change 100644 => 100755 root/etc/cont-init.d/99-start-pxe-services.sh diff --git a/docker-compose.yml b/docker-compose.yml index 69f4389..f01a05f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: - ${PWD}/media:/media/ - /boot:/boot - /var/lib/nfs:/var/lib/nfs + - /run/rpcbind:/run/rpcbind container_name: pxe-container image: pxe-image diff --git a/dockerfile b/dockerfile index 04f98c9..f3f435d 100644 --- a/dockerfile +++ b/dockerfile @@ -1,5 +1,5 @@ -FROM debian:11-slim -RUN apt-get update && apt-get upgrade -y && apt-get autoremove -y && apt-get install unzip fdisk util-linux nano xz-utils wget systemctl sudo git tcpdump zstd -y +FROM debian:12-slim +RUN apt-get update && apt-get install unzip fdisk util-linux nano xz-utils wget systemctl sudo git tcpdump zstd nfs-kernel-server nfs-common rpcbind -y ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.6.0/s6-overlay-noarch.tar.xz /tmp ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.6.0/s6-overlay-aarch64.tar.xz /tmp RUN tar -C / -Jxpf /tmp/s6-overlay-aarch64.tar.xz && tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz && mkdir /app && mkdir /app/RPi-PXE-Server @@ -9,6 +9,7 @@ VOLUME /app/RPi-PXE-Server VOLUME /srv VOLUME /etc/samba VOLUME /boot -RUN rm -rf /temp/* && rm -rf /var/lib/apt/lists/* +RUN rm -rf /temp/* && rm -rf /var/lib/apt/lists/* && mkdir -p /run/rpcbind /run/sendsigs.omit.d/ +RUN rm -rf /run/* /var/run/* WORKDIR /app/RPi-PXE-Server ENTRYPOINT [ "/init" ] diff --git a/init-script.sh b/init-script.sh index b98e2bf..e541b4a 100644 --- a/init-script.sh +++ b/init-script.sh @@ -1,5 +1,20 @@ #!/bin/bash +#systemctl start chrony dnsmasq lighttpd nfs-mountd nfs-server nfs-kernel-server nmbd rsync samba-ad-dc smbd +##systemctl stop rpcbind +#systemctl start rpcbind && systemctl start nfs-kernel-server && rpc.mountd +#systemctl status chrony dnsmasq lighttpd nfs-mountd nfs-server nfs-kernel-server nmbd rsync samba-ad-dc smbd + +# 1. Zuerst zwingend rpcbind starten +systemctl start rpcbind + +# Kurze Pause, damit der Portmapper-Dienst fully up & running ist +sleep 1 + +# 2. Erst danach NFS-Dienste und den Rest starten systemctl start chrony dnsmasq lighttpd nfs-mountd nfs-server nfs-kernel-server nmbd rsync samba-ad-dc smbd -#systemctl stop rpcbind -systemctl start rpcbind && systemctl start nfs-kernel-server && rpc.mountd -systemctl status chrony dnsmasq lighttpd nfs-mountd nfs-server nfs-kernel-server nmbd rsync samba-ad-dc smbd + +# 3. Optional: Falls rpc.mountd separat benötigt wird +rpc.mountd 2>/dev/null || true + +# 4. Status aller Dienste prüfen +systemctl status rpcbind chrony dnsmasq lighttpd nfs-mountd nfs-server nfs-kernel-server nmbd rsync samba-ad-dc smbd diff --git a/root/.DS_Store b/root/.DS_Store deleted file mode 100755 index 1e595af5b777dc96b0c826a478a20d93f62bea5a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKOHRW;47J+|1+nRpO-ED--A5NYtm8TeHOJ^?TqM{NKA diff --git a/root/etc/cont-init.d/99-start-pxe-services.sh b/root/etc/cont-init.d/99-start-pxe-services.sh old mode 100644 new mode 100755 index eb32cde..51c4d01 --- a/root/etc/cont-init.d/99-start-pxe-services.sh +++ b/root/etc/cont-init.d/99-start-pxe-services.sh @@ -5,8 +5,18 @@ echo "Starte PXE-relevante Dienste via systemctl-shim..." # Fix für rpcbind: Fehlendes Verzeichnis erstellen mkdir -p /run/sendsigs.omit.d -systemctl start rpcbind -systemctl start nfs-kernel-server +# rpcbind läuft auf dem Host (network_mode: host) +#systemctl start rpcbind + +# NFS: +# Das Debian-Init-Skript verweigert den Start, weil es den +# hostseitigen rpcbind-Prozess im Container nicht erkennen kann. +# nfsd daher direkt starten. +echo "Starte NFS kernel daemon..." +exportfs -ra +rpc.nfsd 8 + +echo "Starte PXE-Dienste..." systemctl start dnsmasq systemctl start lighttpd systemctl start smbd