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.
Bug 5318 covers a known issue on ipk and perhaps deb.
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
Merged on master http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=23d1c4ffb7791e2f75f0eaa84dd6b936d3b861f7