classes/rootfs_*: error out if postinstalls exist with read-only rootfs
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 16 Jan 2013 18:09:27 +0000 (18:09 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Jan 2013 13:28:05 +0000 (13:28 +0000)
commitb5d71f73779466f078cbf01fb1aaeab5500daa4b
treeb2d78463eb57c0a754cc1789f40d419812cbcceb
parent37ad2742a1ae6f8c3b09903c132346d9c368f0a6
classes/rootfs_*: error out if postinstalls exist with read-only rootfs

If there are postinstall scripts to be run on first boot and
IMAGE_FEATURES contains "read-only-rootfs", we know this will fail on
the target device so just error out during do_rootfs. This check was
already implemented for ipk, so add it to the deb and rpm backends. Also
make all backends use bberror rather than just echo to display the
error.

Fixes [YOCTO #3407].

(From OE-Core rev: 510e377f252dece8850487c30482f83df4a89c7e)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rootfs_deb.bbclass
meta/classes/rootfs_ipk.bbclass
meta/classes/rootfs_rpm.bbclass