| Summary: | Need a test to verify firstboot postinst script order | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [QA/Testing] Runtime Testing | Reporter: | Mark Hatle <mark.hatle> | ||||||
| Component: | general | Assignee: | Francisco Pedraza <francisco.j.pedraza.gonzalez> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Jair Gonzalez <jair.de.jesus.gonzalez.plascencia> | ||||||
| Severity: | normal | ||||||||
| Priority: | Medium+ | CC: | alexandru.c.georgescu, corneliux.stoicescu, francisco.j.pedraza.gonzalez, ross.burton, sgw | ||||||
| Version: | 2.1 | ||||||||
| Target Milestone: | 2.3 M1 | ||||||||
| Hardware: | x86 | ||||||||
| OS: | Multiple | ||||||||
| Whiteboard: | |||||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||||
| Verified: | Documentation change: | Don't know | |||||||
| Bug Depends on: | 5318 | ||||||||
| Bug Blocks: | 8433 | ||||||||
| Attachments: |
|
||||||||
Created attachment 2530 [details]
messages from MM corei7 64
Hello, Please excuse my last comment. It was intended for an other bug (In reply to comment #0) > Created attachment 1549 [details] > Initial test layer to test postinst ordering > > We need to verify that scripts that have to run on first boot execute in the > correct order. Attached is a small layer that implemented two new packages > 'A' and 'Z'. The package 'A' requires 'Z' to be installed first. > > Likely this test should be expanded to cover 5 or 6 total packages with an > array of dependency ordering. > > The purpose of the test is to verify that install/dependency based ordering > works properly, not just alphabetic sorting. > > Please contact me if you need further information on adding additional tests > to prove the system is working right. Hi Mark, Could you please be more specific? I just reviewed layer.conf, z_1.0.bb and a_1.0.bb files It is clear the part in how they are being verified for dependencies. However you say: " Likely this test should be expanded to cover 5 or 6 total packages with an array of dependency ordering. " Which are these packages? I got the point of the requirement, until now I created the layers and in a simple test the created layers were called properly once qemu boot. I am working on get the info from serial output. Regards Paco It is pushed on contrib: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fjpedraz/Postinstv2 Running now on AB. Running on AB: An update was pushed to contrib http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fjpedraza/postinst I just sent the path, is under review. http://lists.openembedded.org/pipermail/openembedded-core/2016-November/128840.html Regards, Paco I created a test case for this: https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1540 An improvement was needed for name convention and structure: Pushed already on contrib [1] and running on local AB. [1] - http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=fjpedraz%2Fpostinst-V3 |
Created attachment 1549 [details] Initial test layer to test postinst ordering We need to verify that scripts that have to run on first boot execute in the correct order. Attached is a small layer that implemented two new packages 'A' and 'Z'. The package 'A' requires 'Z' to be installed first. Likely this test should be expanded to cover 5 or 6 total packages with an array of dependency ordering. The purpose of the test is to verify that install/dependency based ordering works properly, not just alphabetic sorting. Please contact me if you need further information on adding additional tests to prove the system is working right.