Fix for Xenial network with root on NFS
This commit is contained in:
parent
4cdfd817c8
commit
d02693bb50
@ -1,5 +1,6 @@
|
||||
# Wired adapter #1
|
||||
allow-hotplug eth0
|
||||
#no-auto-down eth0
|
||||
iface eth0 inet dhcp
|
||||
# hwaddress ether # if you want to set MAC manually
|
||||
# pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838
|
||||
|
||||
@ -153,8 +153,9 @@ xenial)
|
||||
|
||||
# disable stopping network interfaces
|
||||
# fixes shutdown with root on NFS
|
||||
mkdir -p $CACHEDIR/sdcard/etc/systemd/system/networking.service.d/
|
||||
printf "[Service]\nExecStop=\n" > $CACHEDIR/sdcard/etc/systemd/system/networking.service.d/10-nostop.conf
|
||||
# NOTE: fixed by "no-auto-down eth0" in interfaces.default
|
||||
#mkdir -p $CACHEDIR/sdcard/etc/systemd/system/networking.service.d/
|
||||
#printf "[Service]\nExecStop=\n" > $CACHEDIR/sdcard/etc/systemd/system/networking.service.d/10-nostop.conf
|
||||
;;
|
||||
*)
|
||||
exit_with_error "Unknown OS release selected"
|
||||
|
||||
@ -134,6 +134,7 @@ create_board_package()
|
||||
mkdir -p $destination/etc/network/
|
||||
cp $SRC/lib/config/network/interfaces.* $destination/etc/network/
|
||||
[[ $RELEASE = wheezy ]] && sed -i 's/allow-hotplug/auto/g' $destination/etc/network/interfaces.default
|
||||
[[ $RELEASE = xenial ]] && sed -i 's/#no-auto-down/no-auto-down/g' $destination/etc/network/interfaces.default
|
||||
|
||||
# apt configuration
|
||||
mkdir -p $destination/etc/apt/apt.conf.d/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user