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:42:58 +0000 |
commit | d6793165feb26c51b5f19ad1e6d1a4099878e879 (patch) | |
tree | 2b5b819f73a31522b91ea6afc9c6d5e9966021e6 /meta/classes/rootfs_ipk.bbclass | |
parent | f01fbc17b5d9bf9a227d64fe858014376cd19432 (diff) | |
download | openembedded-core-d6793165feb26c51b5f19ad1e6d1a4099878e879.tar.gz openembedded-core-d6793165feb26c51b5f19ad1e6d1a4099878e879.tar.bz2 openembedded-core-d6793165feb26c51b5f19ad1e6d1a4099878e879.zip |
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@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 e02b8165b7..3094c1ac5f 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 |