From f4857a582c96bc1a19d643dcd2f094e84592cb2c Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Wed, 25 Jun 2014 17:32:43 +0200 Subject: [PATCH] busybox: disable '-R' udhcpc option from ifupdown udhcpc's '-R' option means 'Release IP on exit'. This fixes a strange corner case on reboot: if you configure your network interface to DHCP in '/etc/network/interfaces' AND you have some NFS share mounted on your system, then running reboot command fails to complete and it hangs on: 'Unmounting local filesystem' This happens because on reboot TERM and KILL signals are sent to all the processes in the system before umounting the local filesystem. When udhcpc daemon receives the signal it exits and releases the IP (because it was launched with '-R') leaving an unconfigured network interface that later is unable to umount a network filesystem (NFS), resulting on 'reboot' command being unable to complete. Removing the '-R' option from udchpc allows to kill the process without unconfiguring the network interface. https://jira.digi.com/browse/DEL-1125 Signed-off-by: Javier Viguera --- meta-digi-dey/recipes-core/busybox/busybox/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-digi-dey/recipes-core/busybox/busybox/defconfig b/meta-digi-dey/recipes-core/busybox/busybox/defconfig index 443758a6f..11c94e377 100644 --- a/meta-digi-dey/recipes-core/busybox/busybox/defconfig +++ b/meta-digi-dey/recipes-core/busybox/busybox/defconfig @@ -863,7 +863,7 @@ CONFIG_UDHCP_DEBUG=0 CONFIG_FEATURE_UDHCP_8021Q=y CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 -CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n" +CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-n" CONFIG_UDPSVD=y # CONFIG_VCONFIG is not set CONFIG_WGET=y