<div dir="ltr">This is good, but the fallocate alternative should be added only for target build.<div><br></div><div>nativesdk explicitly disables fallocate in</div><div>meta/recipes-core/util-linux/<a href="http://util-linux_2.32.bb">util-linux_2.32.bb</a><br></div><div><br></div><div><div>EXTRA_OECONF_class-nativesdk = "${SHARED_EXTRA_OECONF} \</div><div> --disable-fallocate \</div><div> --disable-use-tty-group \</div><div>"</div></div><div><br></div><div>so now nativesdk builds have new warning:</div><div><div>WARNING: nativesdk-util-linux-2.32-r0 do_package: util-linux: alternative target (sdk/usr/bin/fallocate or sdk/usr/bin/fallocate.util-linux) does not exist, skipping...</div><div>WARNING: nativesdk-util-linux-2.32-r0 do_package: util-linux: NOT adding alternative provide sdk/usr/bin/fallocate: sdk/usr/bin/fallocate.util-linux does not exist</div><div>WARNING: nativesdk-util-linux-2.32-r0 do_package: util-linux: alt_link == alt_target: sdk/usr/bin/fallocate == sdk/usr/bin/fallocate</div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 5, 2018 at 10:56 AM Ioan-Adrian Ratiu <<a href="mailto:adrian.ratiu@ni.com">adrian.ratiu@ni.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">These binaries can be provided by busybox triggering a conflict in<br>
do_rootfs so update-alternatives needs to know about them to properly<br>
create the symlinks.<br>
<br>
Signed-off-by: Ioan-Adrian Ratiu <<a href="mailto:adrian.ratiu@ni.com" target="_blank">adrian.ratiu@ni.com</a>><br>
---<br>
meta/recipes-core/util-linux/util-linux.inc | 4 +++-<br>
1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc<br>
index 8d8f3962ff..ed5c618750 100644<br>
--- a/meta/recipes-core/util-linux/util-linux.inc<br>
+++ b/meta/recipes-core/util-linux/util-linux.inc<br>
@@ -206,7 +206,7 @@ do_install_append_class-native () {<br>
ALTERNATIVE_PRIORITY = "80"<br>
<br>
ALTERNATIVE_${PN} = "dmesg kill more mkswap blockdev pivot_root switch_root"<br>
-ALTERNATIVE_${PN} += "hexdump last lastb logger mesg renice wall"<br>
+ALTERNATIVE_${PN} += "hexdump last lastb logger mesg renice wall fallocate unshare"<br>
ALTERNATIVE_${PN} += "setsid chrt flock utmpdump eject nologin taskset"<br>
<br>
ALTERNATIVE_LINK_NAME[dmesg] = "${base_bindir}/dmesg"<br>
@@ -217,6 +217,8 @@ ALTERNATIVE_LINK_NAME[blockdev] = "${base_sbindir}/blockdev"<br>
ALTERNATIVE_LINK_NAME[pivot_root] = "${base_sbindir}/pivot_root"<br>
ALTERNATIVE_LINK_NAME[switch_root] = "${base_sbindir}/switch_root"<br>
ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"<br>
+ALTERNATIVE_LINK_NAME[unshare] = "${bindir}/unshare"<br>
+ALTERNATIVE_LINK_NAME[fallocate] = "${bindir}/fallocate"<br>
ALTERNATIVE_LINK_NAME[nologin] = "${base_sbindir}/nologin"<br>
<br>
ALTERNATIVE_${PN}-doc = "mountpoint.1 last.1 lastb.1 mesg.1 wall.1 nologin.8 sulogin.8 utmpdump.1 rfkill.8 kill.1 libblkid.3 blkid.8 findfs.8 fsck.8 uuid.3 eject.1 logger.1"<br>
-- <br>
2.18.0<br>
<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div>