]> code.ossystems Code Review - openembedded-core.git/commit
parted: use update-alternatives for partprobe
authorMax Krummenacher <max.oss.09@gmail.com>
Fri, 5 Oct 2018 10:05:17 +0000 (12:05 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 9 Oct 2018 11:02:41 +0000 (12:02 +0100)
commit99b74d1ff23ef91c84dc81ecf6437ad3bc37fb64
tree206d1624ee8ef794072690d16c1b4413fcc887c9
parent2f9f02d5fda9884ccf9ae22ceb00d59b99036a49
parted: use update-alternatives for partprobe

busybox may also provide a partprobe implementation, so use u-a to allow
installing them side by side.
If one installs both, busybox and parted, one gets the following error:

| ERROR: image do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,
| then please place them into pkg_postinst_ontarget_${PN} ().
| Deferring to first boot via 'exit 1' is no longer supported.

And the coresponding log.do_rootfs extract:

| ...
| update-alternatives: Error: not linking ...image/rootfs/usr/sbin/partprobe to /bin/busybox.nosuid since ...image/rootfs/usr/sbin/partprobe exists and is not a link
| ...

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/parted/parted_3.2.bb