mirror of
https://github.com/pi-farm/Docker-PXE-Server.git
synced 2026-10-28 03:15:22 +00:00
* 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. * Add permissions and symlink for systemctl Added executable permissions to systemctl and created a symlink. * Add script to start PXE-related services * Add script to start PXE services on initialization This script starts essential PXE services using systemctl. * Rename root/etc/cont-init.d/99-start-pxe-services.sh to root/cont-init.d/99-start-pxe-services.sh * Rename root/cont-init.d/99-start-pxe-services.sh to root/etc/cont-init.d/99-start-pxe-services.sh * Fix rpcbind by creating missing directory Create missing directory for rpcbind service. * Update and rename root/etc/s6-overlay/s6-rc.d/cont-init.d/99-start-pxe-services.sh to 0 * Rename root/etc/s6-overlay/s6-rc.d/user/contents.d/init-pxe-boot-config to 1 * Rename root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/up to 2 * Rename root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/type to 3 * Rename root/etc/s6-overlay/s6-rc.d/init-pxe-boot-config/run to 4 * Rename root/etc/s6-overlay/.DS_Store to 5 * Rename root/etc/.DS_Store to 6 * delete old files * ignore
24 lines
589 B
Bash
24 lines
589 B
Bash
#!/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
|
|
|
|
# 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
|
|
systemctl start nmbd
|