summaryrefslogtreecommitdiffstats
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-09-23 15:27:04 +0100
commit6ac72e8be20a3e6e11750905c1710b07b7648552 (patch)
tree909ec227f1b5d2774e15fe654e0d240014a51e15
parentc594ff73ab3823c8a233540670cc71980b39eb04 (diff)
downloadpoky-6ac72e8be20a3e6e11750905c1710b07b7648552.tar.gz
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] (From OE-Core rev: e88d9e56952414e6214804f9b450c7106d04318d) (From OE-Core rev: e5190cdcf4efe5e80967bded13ef8e530811b0ec) Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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() {
80boot_live_root() { 80boot_live_root() {
81 # Watches the udev event queue, and exits if all current events are handled 81 # Watches the udev event queue, and exits if all current events are handled
82 udevadm settle --timeout=3 --quiet 82 udevadm settle --timeout=3 --quiet
83 killall "${_UDEV_DAEMON##*/}" 2>/dev/null 83 # Kills the current udev running processes, which survived after
84 # device node creation events were handled, to avoid unexpected behavior
85 killall -9 "${_UDEV_DAEMON##*/}" 2>/dev/null
84 86
85 # Allow for identification of the real root even after boot 87 # Allow for identification of the real root even after boot
86 mkdir -p ${ROOT_MOUNT}/media/realroot 88 mkdir -p ${ROOT_MOUNT}/media/realroot