mirror of
https://github.com/pi-farm/Docker-PXE-Server.git
synced 2026-06-18 04:37:13 +00:00
Compare commits
2 Commits
master
...
7e61613ad1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e61613ad1 | ||
|
|
808d83f9a5 |
@@ -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
|
||||
|
||||
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