Openembedded Core Discussions
 help / color / mirror / Atom feed
* [Patch v3] rootfs_ipk bbclass: special-case base-passwd preinst to run first
@ 2011-11-04 11:44 Koen Kooi
  2011-11-04 15:45 ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2011-11-04 11:44 UTC (permalink / raw)
  To: openembedded-core; +Cc: Koen Kooi

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

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 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
-- 
1.7.2.5




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-04 16:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-04 11:44 [Patch v3] rootfs_ipk bbclass: special-case base-passwd preinst to run first Koen Kooi
2011-11-04 15:45 ` Richard Purdie
2011-11-04 16:09   ` Koen Kooi
2011-11-04 16:23     ` Mark Hatle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox