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>
This commit is contained in:
parent
e47cfd447c
commit
9ce56ec4ca
|
@ -77,6 +77,12 @@ fakeroot rootfs_ipk_do_rootfs () {
|
||||||
${ROOTFS_POSTINSTALL_COMMAND}
|
${ROOTFS_POSTINSTALL_COMMAND}
|
||||||
|
|
||||||
runtime_script_required=0
|
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
|
for i in ${IMAGE_ROOTFS}${opkglibdir}/info/*.preinst; do
|
||||||
if [ -f $i ] && ! sh $i; then
|
if [ -f $i ] && ! sh $i; then
|
||||||
runtime_script_required=1
|
runtime_script_required=1
|
||||||
|
|
Loading…
Reference in New Issue