summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-11-04 12:44:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-30 16:38:09 +0000
commit9ce56ec4ca248cbe3917c0052e9b781f133e178b (patch)
tree28c051ea095ad46609d10cd3388e9420317ee672 /meta/classes
parente47cfd447c005d2aac3cb9d2ce320b59a7c0df67 (diff)
downloadpoky-9ce56ec4ca248cbe3917c0052e9b781f133e178b.tar.gz
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. (From OE-Core rev: d6793165feb26c51b5f19ad1e6d1a4099878e879) (From OE-Core rev: 0485c362ac6ee0a3e310de078d7a202b961fed11) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rootfs_ipk.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index e02b8165b7..3094c1ac5f 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -77,6 +77,12 @@ fakeroot rootfs_ipk_do_rootfs () {
77 ${ROOTFS_POSTINSTALL_COMMAND} 77 ${ROOTFS_POSTINSTALL_COMMAND}
78 78
79 runtime_script_required=0 79 runtime_script_required=0
80
81 # Base-passwd needs to run first to install /etc/passwd and friends
82 if [ -e ${IMAGE_ROOTFS}${opkglibdir}/info/base-passwd.preinst ] ; then
83 sh ${IMAGE_ROOTFS}${opkglibdir}/info/base-passwd.preinst
84 fi
85
80 for i in ${IMAGE_ROOTFS}${opkglibdir}/info/*.preinst; do 86 for i in ${IMAGE_ROOTFS}${opkglibdir}/info/*.preinst; do
81 if [ -f $i ] && ! sh $i; then 87 if [ -f $i ] && ! sh $i; then
82 runtime_script_required=1 88 runtime_script_required=1