* Postinsts question
@ 2016-11-08 23:23 Vuille, Martin (Martin)
2016-11-09 0:50 ` Burton, Ross
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Vuille, Martin (Martin) @ 2016-11-08 23:23 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 245 bytes --]
We are running with our rootfs mounted read-only.
Consequently, any postinsts that get deferred to first boot fail.
Is there a way to fail the build for any postinsts that can't
be performed during the build and have to be deferred?
MV
[-- Attachment #2: Type: text/html, Size: 2293 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Postinsts question
2016-11-08 23:23 Postinsts question Vuille, Martin (Martin)
@ 2016-11-09 0:50 ` Burton, Ross
2016-11-09 0:50 ` Khem Raj
2016-11-09 13:18 ` Burton, Ross
2 siblings, 0 replies; 5+ messages in thread
From: Burton, Ross @ 2016-11-09 0:50 UTC (permalink / raw)
To: Vuille, Martin (Martin); +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 664 bytes --]
On 8 November 2016 at 23:23, Vuille, Martin (Martin) <vmartin@avaya.com>
wrote:
> Is there a way to fail the build for any postinsts that can’t
>
> be performed during the build and have to be deferred?
>
>
Sadly not that I'm aware of currently. If you're using a sufficiently
recent release (and by that I mean 2.2 / morty) then there is integrated
support for image QA tests (added in oe-core c9bef2ec if you want to
backport it) which lets you write an image QA function that could verify
that there are no delayed postinsts present in the image.
This would be a sensible addition for read-only rootfs, would you mind
filing a bug?
Ross
[-- Attachment #2: Type: text/html, Size: 1285 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Postinsts question
2016-11-08 23:23 Postinsts question Vuille, Martin (Martin)
2016-11-09 0:50 ` Burton, Ross
@ 2016-11-09 0:50 ` Khem Raj
2016-11-09 13:18 ` Burton, Ross
2 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2016-11-09 0:50 UTC (permalink / raw)
To: Vuille, Martin (Martin), yocto@yoctoproject.org
[-- Attachment #1.1: Type: text/plain, Size: 420 bytes --]
On 11/8/16 3:23 PM, Vuille, Martin (Martin) wrote:
> We are running with our rootfs mounted read-only.
>
> Consequently, any postinsts that get deferred to first boot fail.
>
>
>
> Is there a way to fail the build for any postinsts that can’t
>
> be performed during the build and have to be deferred?
I hope you are using "read-only-rootfs" in IMAGE_FEATURES
>
>
>
> MV
>
>
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Postinsts question
2016-11-08 23:23 Postinsts question Vuille, Martin (Martin)
2016-11-09 0:50 ` Burton, Ross
2016-11-09 0:50 ` Khem Raj
@ 2016-11-09 13:18 ` Burton, Ross
2016-11-09 14:41 ` Vuille, Martin (Martin)
2 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2016-11-09 13:18 UTC (permalink / raw)
To: Vuille, Martin (Martin); +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 784 bytes --]
On 8 November 2016 at 23:23, Vuille, Martin (Martin) <vmartin@avaya.com>
wrote:
> We are running with our rootfs mounted read-only.
>
> Consequently, any postinsts that get deferred to first boot fail.
>
>
>
> Is there a way to fail the build for any postinsts that can’t
>
> be performed during the build and have to be deferred?
>
>
I was looking at some other selftests today and a test suggested that this
already happens, and it's true.
If you add 'read-only-rootfs' to IMAGE_FEATURES then delayed postists are
fatal:
ERROR: core-image-sato-base-1.0-r0 do_rootfs: The following packages could
not be configured offline and rootfs is read-only: ['postinst-test-delayed']
ERROR: core-image-sato-base-1.0-r0 do_rootfs: Function failed: do_rootfs
Ross
[-- Attachment #2: Type: text/html, Size: 1782 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Postinsts question
2016-11-09 13:18 ` Burton, Ross
@ 2016-11-09 14:41 ` Vuille, Martin (Martin)
0 siblings, 0 replies; 5+ messages in thread
From: Vuille, Martin (Martin) @ 2016-11-09 14:41 UTC (permalink / raw)
To: Burton, Ross, Khem Raj; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]
Thanks Ross, Khem
It looks like we aren’t setting ‘read-only-rootfs’
Our images and init are very customized, so we missed that.
Will look into it.
Regards,
MV
From: Burton, Ross [mailto:ross.burton@intel.com]
Sent: November 09, 2016 08:19
To: Vuille, Martin (Martin)
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Postinsts question
On 8 November 2016 at 23:23, Vuille, Martin (Martin) <vmartin@avaya.com<mailto:vmartin@avaya.com>> wrote:
We are running with our rootfs mounted read-only.
Consequently, any postinsts that get deferred to first boot fail.
Is there a way to fail the build for any postinsts that can’t
be performed during the build and have to be deferred?
I was looking at some other selftests today and a test suggested that this already happens, and it's true.
If you add 'read-only-rootfs' to IMAGE_FEATURES then delayed postists are fatal:
ERROR: core-image-sato-base-1.0-r0 do_rootfs: The following packages could not be configured offline and rootfs is read-only: ['postinst-test-delayed']
ERROR: core-image-sato-base-1.0-r0 do_rootfs: Function failed: do_rootfs
Ross
[-- Attachment #2: Type: text/html, Size: 6069 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-11-09 14:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-08 23:23 Postinsts question Vuille, Martin (Martin)
2016-11-09 0:50 ` Burton, Ross
2016-11-09 0:50 ` Khem Raj
2016-11-09 13:18 ` Burton, Ross
2016-11-09 14:41 ` Vuille, Martin (Martin)
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.