forked from altcloud/mkimage-profiles
net: 50-net-nm band-aid
This needs further refinement regarding p7/t7 specifically: NM behaviour regarding defaults differs in sisyphus and this has led to livecds booting with DHCP networking but installed systems booting without configured interfaces.
This commit is contained in:
parent
1061021b6a
commit
226a2395e5
12
features.in/net/rootfs/image-scripts.d/50-net-nm
Executable file
12
features.in/net/rootfs/image-scripts.d/50-net-nm
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
. shell-config
|
||||
|
||||
defcfg=/etc/net/ifaces/default/options-eth
|
||||
|
||||
if [ -x /usr/sbin/NetworkManager -o -x /usr/sbin/connmand ]; then
|
||||
shell_config_set "$defcfg" NM_CONTROLLED yes
|
||||
if [ -x /sbin/dhcpcd -o -x /sbin/dhclient ]; then
|
||||
shell_config_set "$defcfg" BOOTPROTO dhcp
|
||||
fi
|
||||
fi
|
Loading…
Reference in New Issue
Block a user