summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2018-07-02 15:28:06 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-05 00:22:08 +0100
commita77a6dad43388007db78623d0e4c38aedc64c63b (patch)
tree4f38b3cc91baedb5ce98e1a57a583e1800075f62 /meta/recipes-core
parent66aefd48113ec84ec18101f86a95959a0b3b1502 (diff)
downloadpoky-a77a6dad43388007db78623d0e4c38aedc64c63b.tar.gz
util-linux: alternatify fstrim
I hit update-alternatives: Error: not linking [...]/rootfs/sbin/fstrim to /bin/busybox.nosuid since [...]/rootfs/sbin/fstrim exists and is not a link The solution seems to be to tell the alternatives system that util-linux can also provide fstrim. (From OE-Core rev: 7b317343a74bb0c31515b28879127972d50d1896) Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/util-linux/util-linux.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index 8b633e9ac6..8d8f3962ff 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -75,7 +75,7 @@ FILES_${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/libmount/pylibmount.la"
75 75
76FILES_util-linux-agetty = "${base_sbindir}/agetty" 76FILES_util-linux-agetty = "${base_sbindir}/agetty"
77FILES_util-linux-fdisk = "${base_sbindir}/fdisk.${BPN}" 77FILES_util-linux-fdisk = "${base_sbindir}/fdisk.${BPN}"
78FILES_util-linux-fstrim = "${base_sbindir}/fstrim" 78FILES_util-linux-fstrim = "${base_sbindir}/fstrim.${BPN}"
79FILES_util-linux-cfdisk = "${base_sbindir}/cfdisk" 79FILES_util-linux-cfdisk = "${base_sbindir}/cfdisk"
80FILES_util-linux-sfdisk = "${sbindir}/sfdisk" 80FILES_util-linux-sfdisk = "${sbindir}/sfdisk"
81FILES_util-linux-swaponoff = "${base_sbindir}/swapon.${BPN} ${base_sbindir}/swapoff.${BPN}" 81FILES_util-linux-swaponoff = "${base_sbindir}/swapon.${BPN} ${base_sbindir}/swapoff.${BPN}"
@@ -245,6 +245,9 @@ ALTERNATIVE_LINK_NAME[hwclock] = "${base_sbindir}/hwclock"
245ALTERNATIVE_util-linux-fdisk = "fdisk" 245ALTERNATIVE_util-linux-fdisk = "fdisk"
246ALTERNATIVE_LINK_NAME[fdisk] = "${base_sbindir}/fdisk" 246ALTERNATIVE_LINK_NAME[fdisk] = "${base_sbindir}/fdisk"
247 247
248ALTERNATIVE_util-linux-fstrim = "fstrim"
249ALTERNATIVE_LINK_NAME[fstrim] = "${base_sbindir}/fstrim"
250
248ALTERNATIVE_util-linux-agetty = "getty" 251ALTERNATIVE_util-linux-agetty = "getty"
249ALTERNATIVE_LINK_NAME[getty] = "${base_sbindir}/getty" 252ALTERNATIVE_LINK_NAME[getty] = "${base_sbindir}/getty"
250ALTERNATIVE_TARGET[getty] = "${base_sbindir}/agetty" 253ALTERNATIVE_TARGET[getty] = "${base_sbindir}/agetty"