mirror of
https://github.com/rancher/os.git
synced 2025-08-02 07:24:28 +00:00
add a debug dump of the dhcp server
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
449633abaa
commit
a97854e089
@ -34,6 +34,7 @@ RUN rm /sbin/poweroff /sbin/reboot /sbin/halt && \
|
||||
COPY inputrc /etc/inputrc
|
||||
COPY growpart /usr/bin/growpart
|
||||
COPY start_ntp.sh /bin/start_ntp.sh
|
||||
COPY dhcpcd.enter-hook /etc/dhcpcd.enter-hook
|
||||
RUN sed -i s/"partx --update \"\$part\" \"\$dev\""/"partx --update --nr \"\$part\" \"\$dev\""/g /usr/bin/growpart && \
|
||||
sed -i -e 's/duid/clientid/g' /etc/dhcpcd.conf && \
|
||||
sed -i 1,10d /etc/rsyslog.conf && \
|
||||
|
6
images/01-base/dhcpcd.enter-hook
Normal file
6
images/01-base/dhcpcd.enter-hook
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "DHCPCD: $interface $reason" &>> /var/log/dhcpcd.debug.log
|
||||
echo "$(date)" &>> /var/log/dhcpcd.debug.log
|
||||
set | sed -ne 's/^new_//p' | sort &>> /var/log/dhcpcd.debug.log
|
||||
echo "--------------------------" &>> /var/log/dhcpcd.debug.log
|
Loading…
Reference in New Issue
Block a user