From 3517a7651233f4d6a21432059adb037062048028 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 2 Jan 2014 16:20:45 -0600 Subject: dev-manual: Edits to the "Post-Installation Scripts" section. There was some confusion to this section as to just when post-install scripts were being executed. I looked it over and the section really is focusing more on the situations when you are creating a read-only root filesystem. So I went through and did a small amount of editing to just clean up some loose text. (From yocto-docs rev: 1b3674a5d123e74748bce5de61722079d4740908) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-common-tasks.xml | 24 ++++++++++++---------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'documentation/dev-manual') diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 3cb053c907..3e9cccef15 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -5436,8 +5436,8 @@ sure all post-installation scripts succeed. If any of these scripts still need to be run after the root filesystem is created, the build immediately fails. - These checks during build time ensure that the build fails - rather than the target device fails later during its + These build-time checks ensure that the build fails + rather than the target device failing later during its initial boot operation. @@ -5447,7 +5447,7 @@ so that they can run during root filesystem creation (e.g. post-installation scripts for caching fonts). However, if you create and add custom scripts, you need - to be sure they can be run during file system creation. + to be sure they can be run during this file system creation. @@ -5455,18 +5455,22 @@ post-installation scripts from running during root filesystem creation: - Not using $D in front of absolute paths: + + Not using $D in front of absolute + paths: The build system defines $D - at root filesystem creation time, and - it is blank when run on the target device. + when the root filesystem is created. + Furthermore, $D is blank when the + script is run on the target device. This implies two purposes for $D: ensuring paths are valid in both the host and target environments, and checking to determine which environment is being used as a method for taking appropriate actions. - Attempting to run processes that are + + Attempting to run processes that are specific to or dependent on the target architecture: You can work around these attempts by using native @@ -5475,10 +5479,8 @@ which has the qemu_run_binary function. For more information, see the - meta/classes/qemu.bbclass - class in the - Source Directory. - + qemu + class. -- cgit v1.2.3-54-g00ecf