summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorShruthi Ravichandran <shruthi.ravichandran@ni.com>2022-07-21 17:59:54 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-22 14:29:49 +0100
commit1fc880e1658d43bf1310260762eea7018678d91d (patch)
treea656574e5e484f4a28c4dacb9296925fefcf18d4 /meta/recipes-core
parent9243169d4f5be68925d5e86b875525cff1191433 (diff)
downloadpoky-1fc880e1658d43bf1310260762eea7018678d91d.tar.gz
initscripts: run umountnfs as a KILL script
`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. (From OE-Core rev: e59c72d570102d72786e44c8ace69fd4d0e8e5ef) 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> (cherry picked from commit c419bd4537756e9f6c2fe6da3a9b798526e27eca) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/initscripts/initscripts_1.0.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index f98e42eb2e..cb5417cc39 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -129,7 +129,7 @@ do_install () {
129 update-rc.d -r ${D} rmnologin.sh start 99 2 3 4 5 . 129 update-rc.d -r ${D} rmnologin.sh start 99 2 3 4 5 .
130 update-rc.d -r ${D} sendsigs start 20 0 6 . 130 update-rc.d -r ${D} sendsigs start 20 0 6 .
131 update-rc.d -r ${D} urandom start 38 S 0 6 . 131 update-rc.d -r ${D} urandom start 38 S 0 6 .
132 update-rc.d -r ${D} umountnfs.sh start 31 0 1 6 . 132 update-rc.d -r ${D} umountnfs.sh stop 31 0 1 6 .
133 update-rc.d -r ${D} umountfs start 40 0 6 . 133 update-rc.d -r ${D} umountfs start 40 0 6 .
134 update-rc.d -r ${D} reboot start 90 6 . 134 update-rc.d -r ${D} reboot start 90 6 .
135 update-rc.d -r ${D} halt start 90 0 . 135 update-rc.d -r ${D} halt start 90 0 .