aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>2016-07-26 22:10:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-17 10:31:01 +0100
commite88d9e56952414e6214804f9b450c7106d04318d (patch)
treef7029bd091c6c056a5ce444a99a64659975f9734
parentea24d69fdf7ebbd7f2d9811cff8a77bffc19a75c (diff)
downloadopenembedded-core-contrib-e88d9e56952414e6214804f9b450c7106d04318d.tar.gz
openembedded-core-contrib-e88d9e56952414e6214804f9b450c7106d04318d.tar.bz2
openembedded-core-contrib-e88d9e56952414e6214804f9b450c7106d04318d.zip
initramfs-live-boot: Make sure we kill udev before switching root when live booting
When live booting, we need to make sure the running udev processes are killed to avoid unexepected behavior, we do this just before switching root, once we do, a new udev process will be spawned from init and will take care of whatever work was still missing [YOCTO #9520] Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/recipes-core/initrdscripts/files/init-live.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index 09fb479915..441b41c9d6 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -80,7 +80,9 @@ read_args() {
boot_live_root() {
# Watches the udev event queue, and exits if all current events are handled
udevadm settle --timeout=3 --quiet
- killall "${_UDEV_DAEMON##*/}" 2>/dev/null
+ # Kills the current udev running processes, which survived after
+ # device node creation events were handled, to avoid unexpected behavior
+ killall -9 "${_UDEV_DAEMON##*/}" 2>/dev/null
# Allow for identification of the real root even after boot
mkdir -p ${ROOT_MOUNT}/media/realroot