mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c594ff73ab
commit
6ac72e8be2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user