[OE-core] First run postinst broken

Max Krummenacher max.oss.09 at gmail.com
Tue Sep 22 22:32:41 UTC 2015


Hi Andreas
Am Sonntag, den 20.09.2015, 22:30 +0200 schrieb Andreas Müller:
> On Sun, Sep 20, 2015 at 8:56 PM, Andreas Müller
> <schnitzeltony at googlemail.com> wrote:
> > On Sun, Sep 20, 2015 at 12:30 PM, Andreas Müller
> > <schnitzeltony at googlemail.com> wrote:
> >> Hi,
> >>
> >> on images build with current master the postinsts for first run on
> >> target are broken. Looking into
> >>
> >> 'meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service'
> >>
> >> I would expect
> >>
> >> '/etc/*-postinsts'
> >>
> >> in the image created for packets creating
> >>
> >>  '<package>.postinst returned 1, marking as unpacked only,
> >> configuration required on target.'
> >>
> >> in log.do_rootfs. I grepped around but could not find the place
> >> creating the files '/etc/*-postinsts'. Where are these files supposed
> >> to be created?
> >>
> >> Meanwhile I'll start a build with working configuration to find out
> >> where they are created...
> >>
> Sorry for spamming on this but it's important for me and kind of
> documentation. So:
> 
> For test I commented out
> 
> | ConditionPathExistsGlob=#SYSCONFDIR#/*-postinsts
> 
> from 'meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service'
> 
> And I see a postinstall.log again but the content does not make me happy:
> 
> | /usr/sbin/run-postinsts: line 76: opkg: command not found
> 
> Yes I forgot to say: I am using opkg - and it seems it did not make
> it's way in my image!
> 
> This seems to explain that directory /etc/ipk-postinsts is missing
> (and forget suspecting systemd -> previous mail).
> 
> Just a problem of opkg or are other package-managers missing on image either?
> 
> Andreas

I sort of having the same problem. I'm using opkg and angstrom.

I see in .../temp/log.do_rootfs
>>>
Installing angstrom-feed-configs (1.0-r16) on root.  
Downloading
file:.../deploy/ipk/colibri_imx6/angstrom-feed-configs_1.0-r16_colibri_imx6.ipk.
Removing package opkg from root...
<<<

Both opkg and angstrom-feed-configs bb files have:
RCONFLICTS_${PN} = "opkg-collateral"
RREPLACES_${PN} = "opkg-collateral"
RPROVIDES_${PN} = "opkg-collateral"

This has been the case also for opkg_0.2.4.bb (commit e8879cd1) but
somehow opkg_0.3.0.bb seems to have changed the reaction to that.

Commenting these in angstrom-feed-configs results in not removing opkg
in do_rootfs and the resulting image executes the postinstalls again.

If there are negative side effects (both opkg and angstrom-feed-configs
now install configuration files in /etc/opkg) I don't now yet. So I'm
unsure of the correct way forward.

Regards
Max





More information about the Openembedded-core mailing list