summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/parted
diff options
context:
space:
mode:
authorMax Krummenacher <max.oss.09@gmail.com>2018-10-05 12:05:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-09 19:04:02 +0100
commit4a6d4e5b3bfda51b210cb35a6c2fa3dd42bfa3af (patch)
tree0f98c44839f9c48615c1a081044b731c7df14d94 /meta/recipes-extended/parted
parentbbf3a2ab515abd1b8784d0666ed5d9457d09e3b4 (diff)
downloadpoky-4a6d4e5b3bfda51b210cb35a6c2fa3dd42bfa3af.tar.gz
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 | ... (From OE-Core rev: 99b74d1ff23ef91c84dc81ecf6437ad3bc37fb64) Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/parted')
-rw-r--r--meta/recipes-extended/parted/parted_3.2.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-extended/parted/parted_3.2.bb b/meta/recipes-extended/parted/parted_3.2.bb
index ab30108bf2..6189fd2246 100644
--- a/meta/recipes-extended/parted/parted_3.2.bb
+++ b/meta/recipes-extended/parted/parted_3.2.bb
@@ -48,3 +48,9 @@ do_install_ptest() {
48} 48}
49 49
50RDEPENDS_${PN}-ptest = "bash coreutils perl util-linux-losetup python3" 50RDEPENDS_${PN}-ptest = "bash coreutils perl util-linux-losetup python3"
51
52inherit update-alternatives
53
54ALTERNATIVE_PRIORITY = "100"
55ALTERNATIVE_${PN} = "partprobe"
56ALTERNATIVE_LINK_NAME[partprobe] = "${sbindir}/partprobe"