Bug 3407 - Check for postinsts in read-only rootfs (in deb/rpm)
Summary: Check for postinsts in read-only rootfs (in deb/rpm)
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: All Multiple
: Medium+ enhancement
Target Milestone: 1.4 M2
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 3406
  Show dependency tree
 
Reported: 2012-11-12 14:59 UTC by Paul Eggleton
Modified: 2013-05-02 11:50 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2012-11-12 14:59:39 UTC
We should add a way of indicating the root filesystem is supposed to be bootable read-only e.g. adding read-only-rootfs to IMAGE_FEATURES; if this is set we can check during do_rootfs if there are any postinstall scripts to be run on first boot and fail if any are found.

This switch may also be useful if we need to tweak anything else during rootfs construction in the case of a read-only system.
Comment 1 Paul Eggleton 2012-11-13 12:21:02 UTC
Turns out the ipk backend already does exactly this; presumably it just needs to be implemented for rpm (or in a more generic manner).
Comment 2 Paul Eggleton 2012-12-13 15:12:42 UTC
I have a preliminary patch for this, still need to test it.
Comment 4 Alexandru Palalau 2013-03-25 13:37:57 UTC
Verified on master branch.
Commit ID: 9ffee9add2d0380f4025e7a678a166f25a7d659e
Comment 5 Alexandru Palalau 2013-05-02 11:50:17 UTC
This is covered with the following Testopia test case:
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=741