[oe-commits] Koen Kooi : rootfs_ipk bbclass: special-case base-passwd preinst to run first

git at git.openembedded.org git at git.openembedded.org
Fri Nov 4 15:43:35 UTC 2011


Module: openembedded-core.git
Branch: master
Commit: d6793165feb26c51b5f19ad1e6d1a4099878e879
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d6793165feb26c51b5f19ad1e6d1a4099878e879

Author: Koen Kooi <koen at dominion.thruhere.net>
Date:   Fri Nov  4 12:44:39 2011 +0100

rootfs_ipk bbclass: special-case base-passwd preinst to run first

Preinst are run alphabetically which breaks when e.g. avahi-daemon needs /etc/passwd present.

Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/rootfs_ipk.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index e02b816..3094c1a 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -77,6 +77,12 @@ fakeroot rootfs_ipk_do_rootfs () {
 	${ROOTFS_POSTINSTALL_COMMAND}
 	
 	runtime_script_required=0
+
+	# Base-passwd needs to run first to install /etc/passwd and friends
+	if [ -e ${IMAGE_ROOTFS}${opkglibdir}/info/base-passwd.preinst ] ; then
+		sh ${IMAGE_ROOTFS}${opkglibdir}/info/base-passwd.preinst
+	fi
+
 	for i in ${IMAGE_ROOTFS}${opkglibdir}/info/*.preinst; do
 		if [ -f $i ] && ! sh $i; then
 		     	runtime_script_required=1





More information about the Openembedded-commits mailing list