diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-04 12:44:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-04 15:43:29 +0000 |
commit | de0d9ae939d78430610634ec810687d3e537ac99 (patch) | |
tree | e34885c6275c21b951522801e2fb5eac841bddd0 /meta/classes/rootfs_ipk.bbclass | |
parent | 01f59c4169a432732bb23148caa8111cf7811b6a (diff) | |
download | ast2050-yocto-poky-de0d9ae939d78430610634ec810687d3e537ac99.zip ast2050-yocto-poky-de0d9ae939d78430610634ec810687d3e537ac99.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)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_ipk.bbclass')
-rw-r--r-- | 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 |