diff options
-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 |