From: Saul Wold <saul.wold@intel.com>
To: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] initramfs-live-boot: Make sure we kill udev before switching root when live booting
Date: Mon, 15 Aug 2016 16:57:07 -0700 [thread overview]
Message-ID: <1471305427.6975.23.camel@intel.com> (raw)
In-Reply-To: <12d562d929e08f3dae1d273fb4a1b6a5f1de0021.1469570866.git.alejandro.hernandez@linux.intel.com>
On Tue, 2016-07-26 at 22:10 +0000, Alejandro Hernandez wrote:
> 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>
Reviewed-by: Saul Wold <sgw@linux.intel.com>
> ---
> meta/recipes-core/initrdscripts/files/init-live.sh | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh
> b/meta/recipes-core/initrdscripts/files/init-live.sh
> index 09fb479..441b41c 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
> --
> 2.6.6
>
prev parent reply other threads:[~2016-08-15 23:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1469570866.git.alejandro.hernandez@linux.intel.com>
2016-07-26 22:10 ` [PATCH 1/1] initramfs-live-boot: Make sure we kill udev before switching root when live booting Alejandro Hernandez
2016-08-15 23:57 ` Saul Wold [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1471305427.6975.23.camel@intel.com \
--to=saul.wold@intel.com \
--cc=alejandro.hernandez@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox