tuto3: add sos-dhcp script in case of VM not booting correctly
This commit is contained in:
parent
05caa1d2d3
commit
71669a2f7a
|
@ -31,7 +31,7 @@ onboot:
|
|||
# Network: external
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:v0.7
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1", "eth0"]
|
||||
net: new
|
||||
runtime:
|
||||
interfaces:
|
||||
|
@ -461,6 +461,12 @@ files:
|
|||
# done &
|
||||
# mode: "0555"
|
||||
|
||||
- path: /usr/sbin/sos-dhcp
|
||||
contents: |
|
||||
#!/bin/sh
|
||||
nsenter -t $(pgrep dhcpcd) -a dhcpcd
|
||||
mode: "0755"
|
||||
|
||||
- path: /usr/sbin/join-p0m
|
||||
contents: |
|
||||
[ -f "/var/lib/adlin/wireguard/adlin.token" ] && echo "A token is already defined. You'll erase it it you continue."
|
||||
|
|
Reference in New Issue