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