mirror of
https://github.com/pi-farm/Docker-PXE-Server.git
synced 2026-06-16 20:07:13 +00:00
Compare commits
16 Commits
master
...
d1e6da9930
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1e6da9930 | ||
|
|
7c07bbf9b0 | ||
|
|
9c5ef65444 | ||
|
|
81fcde4a7e | ||
|
|
8f2f69d7ab | ||
|
|
f884a4c955 | ||
|
|
50f7712b2c | ||
|
|
2d7b50a51e | ||
|
|
e089021092 | ||
|
|
3ad711cf1e | ||
|
|
bd585216ea | ||
|
|
1821912e3e | ||
|
|
5afd01feca | ||
|
|
6b803e71cd | ||
|
|
7e61613ad1 | ||
|
|
808d83f9a5 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@ srv/
|
||||
RPi-PXE-Server
|
||||
notes
|
||||
samba/
|
||||
.DS_Store
|
||||
@@ -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
|
||||
|
||||
BIN
root/etc/.DS_Store
vendored
BIN
root/etc/.DS_Store
vendored
Binary file not shown.
13
root/etc/cont-init.d/99-start-pxe-services.sh
Normal file
13
root/etc/cont-init.d/99-start-pxe-services.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/command/with-contenv bash
|
||||
|
||||
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
|
||||
systemctl start dnsmasq
|
||||
systemctl start lighttpd
|
||||
systemctl start smbd
|
||||
systemctl start nmbd
|
||||
BIN
root/etc/s6-overlay/.DS_Store
vendored
BIN
root/etc/s6-overlay/.DS_Store
vendored
Binary file not shown.
@@ -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
|
||||
@@ -1 +0,0 @@
|
||||
oneshot
|
||||
@@ -1 +0,0 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/run
|
||||
32
root/usr/local/bin/systemctl
Normal file
32
root/usr/local/bin/systemctl
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user