]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
initscripts: run umountnfs as a KILL script
authorShruthi Ravichandran <shruthi.ravichandran@ni.com>
Fri, 22 Jul 2022 00:59:54 +0000 (17:59 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Jul 2022 12:55:13 +0000 (13:55 +0100)
`rc` runs all the KILL scripts in a runlevel before the START scripts.
The umountnfs script is currently configured as a START script, and
runs after the networking KILL script. During shutdown, this causes a
~3 minute timeout after networking is shutdown when the system tries
to connect to and unmount any mounted network shares.
Fix this by changing the script configuration to "stop" so that it can
run before networking is stopped and unmount any network shares
safely.

Signed-off-by: Shruthi Ravichandran <shruthi.ravichandran@ni.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initscripts/initscripts_1.0.bb

index 2244d1b2923c709ca6940dc26f5b319335c4fce5..7c9d9ca4f1070e4c0ad6f6701f9b0553955dbf92 100644 (file)
@@ -130,7 +130,7 @@ do_install () {
        update-rc.d -r ${D} rmnologin.sh start 99 2 3 4 5 .
        update-rc.d -r ${D} sendsigs start 20 0 6 .
        update-rc.d -r ${D} urandom start 38 S 0 6 .
-       update-rc.d -r ${D} umountnfs.sh start 31 0 1 6 .
+       update-rc.d -r ${D} umountnfs.sh stop 31 0 1 6 .
        update-rc.d -r ${D} umountfs start 40 0 6 .
        update-rc.d -r ${D} reboot start 90 6 .
        update-rc.d -r ${D} halt start 90 0 .