mirror of
https://github.com/pi-farm/Docker-PXE-Server.git
synced 2026-06-16 20:07:13 +00:00
Compare commits
16 Commits
7e61613ad1
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ebf39ae30d | ||
|
|
bac0d25653 | ||
|
|
b719c42ef4 | ||
|
|
bbc1c8c1d2 | ||
|
|
49af85b06f | ||
|
|
320f6723ae | ||
|
|
5f544860db | ||
|
|
ce6c6487b3 | ||
|
|
ea6ec8d74c | ||
|
|
7ffa27396d | ||
|
|
732f32327b | ||
|
|
089e8f206f | ||
|
|
71710e8507 | ||
|
|
aefcb41cdc | ||
|
|
43bf3a1db8 | ||
|
|
c8f19df99c |
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