* do_rootfs fails while attempting to install hostapd package
@ 2019-06-01 14:40 Morné Lamprecht
2019-06-01 15:43 ` Belisko Marek
0 siblings, 1 reply; 8+ messages in thread
From: Morné Lamprecht @ 2019-06-01 14:40 UTC (permalink / raw)
To: yocto
Hi
I created a new custom distribution and
everything seems to work fine until the do_rootfs
task is executed. It fails specifically when
trying to install the hostapd package, with the
error below (snippet from log.do_rootfs):
> Running scriptlet: hostapd-2.6-r0.aarch64
>
> usage: update-rc.d [-n] [-f] [-r <root>] <basename> remove update-rc.d
> [-n] [-r <root>] [-s] <basename> defaults [NN | sNN kNN]
> update-rc.d [-n] [-r <root>] [-s] <basename> start|stop NN runlvl [runlvl]
>
> error: %prein(hostapd-2.6-r0.aarch64) scriptlet failed, exit status 1
> error: hostapd-2.6-r0.aarch64: install failed
The hostapd package itself builds fine, it is
just the installation to the rootfs that fails.
The hostapd package is specified in
MACHINE_EXTRA_DEPENDS, if I remove it, then the
build succeeds without any issues.
If I interpret the error correctly, it is the
preinstall scriptlet that fails...but I am not
sure where to start debugging this.
Any suggestions ?
- Morné
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: do_rootfs fails while attempting to install hostapd package
2019-06-01 14:40 do_rootfs fails while attempting to install hostapd package Morné Lamprecht
@ 2019-06-01 15:43 ` Belisko Marek
2019-06-01 18:25 ` Morné Lamprecht
0 siblings, 1 reply; 8+ messages in thread
From: Belisko Marek @ 2019-06-01 15:43 UTC (permalink / raw)
To: Morné Lamprecht; +Cc: yocto
Hi,
On Sat, Jun 1, 2019 at 4:41 PM Morné Lamprecht <morne@linux.com> wrote:
>
> Hi
>
> I created a new custom distribution and
> everything seems to work fine until the do_rootfs
> task is executed. It fails specifically when
> trying to install the hostapd package, with the
> error below (snippet from log.do_rootfs):
I would check run.do_rootfs and check it maybe there will be some more info.
Do you have some custom extension for hostapd? Thanks.
>
> > Running scriptlet: hostapd-2.6-r0.aarch64
> >
> > usage: update-rc.d [-n] [-f] [-r <root>] <basename> remove update-rc.d
> > [-n] [-r <root>] [-s] <basename> defaults [NN | sNN kNN]
> > update-rc.d [-n] [-r <root>] [-s] <basename> start|stop NN runlvl [runlvl]
> >
> > error: %prein(hostapd-2.6-r0.aarch64) scriptlet failed, exit status 1
>
> > error: hostapd-2.6-r0.aarch64: install failed
>
> The hostapd package itself builds fine, it is
> just the installation to the rootfs that fails.
>
> The hostapd package is specified in
> MACHINE_EXTRA_DEPENDS, if I remove it, then the
> build succeeds without any issues.
>
> If I interpret the error correctly, it is the
> preinstall scriptlet that fails...but I am not
> sure where to start debugging this.
>
> Any suggestions ?
>
> - Morné
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
marek
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: do_rootfs fails while attempting to install hostapd package
2019-06-01 15:43 ` Belisko Marek
@ 2019-06-01 18:25 ` Morné Lamprecht
2019-06-03 6:42 ` Belisko Marek
0 siblings, 1 reply; 8+ messages in thread
From: Morné Lamprecht @ 2019-06-01 18:25 UTC (permalink / raw)
To: Belisko Marek; +Cc: yocto
>I would check run.do_rootfs and check it maybe
>there will be some more info.
I checked it based on your suggestion,
unfortunately found no relevant info.
>Do you have some custom extension for hostapd?
No, just the standard package.
- Morné
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: do_rootfs fails while attempting to install hostapd package
2019-06-01 18:25 ` Morné Lamprecht
@ 2019-06-03 6:42 ` Belisko Marek
2019-06-03 8:35 ` Morné Lamprecht
2019-06-03 14:05 ` Morné Lamprecht
0 siblings, 2 replies; 8+ messages in thread
From: Belisko Marek @ 2019-06-03 6:42 UTC (permalink / raw)
To: Morné Lamprecht; +Cc: yocto
On Sat, Jun 1, 2019 at 8:26 PM Morné Lamprecht <morne@linux.com> wrote:
>
> >I would check run.do_rootfs and check it maybe
> >there will be some more info.
>
> I checked it based on your suggestion,
> unfortunately found no relevant info.
>
> >Do you have some custom extension for hostapd?
>
> No, just the standard package.
Which startup system do you use (sysVinit or systemd)?
You can take a look at poky/meta/classed/update-rc.d.bbclass which
checks various parameters and try to debug it (by adding some
printouts).
By my guess is that some misconfiguration between systemd/sysvinit
must cause this issue. Thanks.
>
> - Morné
BR,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: do_rootfs fails while attempting to install hostapd package
2019-06-03 6:42 ` Belisko Marek
@ 2019-06-03 8:35 ` Morné Lamprecht
2019-06-03 14:05 ` Morné Lamprecht
1 sibling, 0 replies; 8+ messages in thread
From: Morné Lamprecht @ 2019-06-03 8:35 UTC (permalink / raw)
To: Belisko Marek; +Cc: yocto
>Which startup system do you use (sysVinit or
>systemd)? You can take a look at
>poky/meta/classed/update-rc.d.bbclass which
>checks various parameters and try to debug it
>(by adding some printouts). By my guess is that
>some misconfiguration between systemd/sysvinit
>must cause this issue.
I'm using systemd. I think you may be right, I'll
have a look at update-rc.d.bbclass and see if I
can debug it.
Thanks for the advice !
- Morné
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: do_rootfs fails while attempting to install hostapd package
2019-06-03 6:42 ` Belisko Marek
2019-06-03 8:35 ` Morné Lamprecht
@ 2019-06-03 14:05 ` Morné Lamprecht
2019-06-03 15:30 ` Burton, Ross
1 sibling, 1 reply; 8+ messages in thread
From: Morné Lamprecht @ 2019-06-03 14:05 UTC (permalink / raw)
To: yocto
>Which startup system do you use (sysVinit or
>systemd)? You can take a look at
>poky/meta/classed/update-rc.d.bbclass which
>checks various parameters and try to debug it
>(by adding some printouts). By my guess is that
>some misconfiguration between systemd/sysvinit
>must cause this issue.
Adding DISTRO_FEATURES_remove += " sysvinit" to
my distro conf file, solved the problem.
I also have DISTRO_FEATURES_BACKFULL_CONSIDERED =
"sysvinit" in my config (also had it during the
failed builds), I thought it would prevent
sysvinit from being added/backfilled to the
DISTRO features ? So I'm not sure why
DISTRO_FEATURES_remove is also required in this
case ?
- Morné
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: do_rootfs fails while attempting to install hostapd package
2019-06-03 14:05 ` Morné Lamprecht
@ 2019-06-03 15:30 ` Burton, Ross
2019-06-03 16:54 ` Morné Lamprecht
0 siblings, 1 reply; 8+ messages in thread
From: Burton, Ross @ 2019-06-03 15:30 UTC (permalink / raw)
To: yocto
On Mon, 3 Jun 2019 at 15:06, Morné Lamprecht <morne@linux.com> wrote:
> I also have DISTRO_FEATURES_BACKFULL_CONSIDERED =
> "sysvinit" in my config (also had it during the
> failed builds), I thought it would prevent
> sysvinit from being added/backfilled to the
> DISTRO features ? So I'm not sure why
> DISTRO_FEATURES_remove is also required in this
> case ?
The variable is DISTRO_FEATURES_BACKFILL_CONSIDERED, in case that
wasn't a typo when writing the mail.
Ross
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: do_rootfs fails while attempting to install hostapd package
2019-06-03 15:30 ` Burton, Ross
@ 2019-06-03 16:54 ` Morné Lamprecht
0 siblings, 0 replies; 8+ messages in thread
From: Morné Lamprecht @ 2019-06-03 16:54 UTC (permalink / raw)
To: yocto
On Mon, Jun 03, 2019 at 04:30:33PM +0100, Burton, Ross wrote:
>The variable is
>DISTRO_FEATURES_BACKFILL_CONSIDERED, in case
>that wasn't a typo when writing the mail.
It wasn't a typo, and that was exactly the
problem. Well spotted, everything in the world
makes sense again :-)
- Morné
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-06-03 16:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-01 14:40 do_rootfs fails while attempting to install hostapd package Morné Lamprecht
2019-06-01 15:43 ` Belisko Marek
2019-06-01 18:25 ` Morné Lamprecht
2019-06-03 6:42 ` Belisko Marek
2019-06-03 8:35 ` Morné Lamprecht
2019-06-03 14:05 ` Morné Lamprecht
2019-06-03 15:30 ` Burton, Ross
2019-06-03 16:54 ` Morné Lamprecht
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.