diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2018-07-02 15:28:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-05 00:22:08 +0100 |
commit | a77a6dad43388007db78623d0e4c38aedc64c63b (patch) | |
tree | 4f38b3cc91baedb5ce98e1a57a583e1800075f62 /meta/recipes-core | |
parent | 66aefd48113ec84ec18101f86a95959a0b3b1502 (diff) | |
download | poky-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.inc | 5 |
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 | ||
76 | FILES_util-linux-agetty = "${base_sbindir}/agetty" | 76 | FILES_util-linux-agetty = "${base_sbindir}/agetty" |
77 | FILES_util-linux-fdisk = "${base_sbindir}/fdisk.${BPN}" | 77 | FILES_util-linux-fdisk = "${base_sbindir}/fdisk.${BPN}" |
78 | FILES_util-linux-fstrim = "${base_sbindir}/fstrim" | 78 | FILES_util-linux-fstrim = "${base_sbindir}/fstrim.${BPN}" |
79 | FILES_util-linux-cfdisk = "${base_sbindir}/cfdisk" | 79 | FILES_util-linux-cfdisk = "${base_sbindir}/cfdisk" |
80 | FILES_util-linux-sfdisk = "${sbindir}/sfdisk" | 80 | FILES_util-linux-sfdisk = "${sbindir}/sfdisk" |
81 | FILES_util-linux-swaponoff = "${base_sbindir}/swapon.${BPN} ${base_sbindir}/swapoff.${BPN}" | 81 | FILES_util-linux-swaponoff = "${base_sbindir}/swapon.${BPN} ${base_sbindir}/swapoff.${BPN}" |
@@ -245,6 +245,9 @@ ALTERNATIVE_LINK_NAME[hwclock] = "${base_sbindir}/hwclock" | |||
245 | ALTERNATIVE_util-linux-fdisk = "fdisk" | 245 | ALTERNATIVE_util-linux-fdisk = "fdisk" |
246 | ALTERNATIVE_LINK_NAME[fdisk] = "${base_sbindir}/fdisk" | 246 | ALTERNATIVE_LINK_NAME[fdisk] = "${base_sbindir}/fdisk" |
247 | 247 | ||
248 | ALTERNATIVE_util-linux-fstrim = "fstrim" | ||
249 | ALTERNATIVE_LINK_NAME[fstrim] = "${base_sbindir}/fstrim" | ||
250 | |||
248 | ALTERNATIVE_util-linux-agetty = "getty" | 251 | ALTERNATIVE_util-linux-agetty = "getty" |
249 | ALTERNATIVE_LINK_NAME[getty] = "${base_sbindir}/getty" | 252 | ALTERNATIVE_LINK_NAME[getty] = "${base_sbindir}/getty" |
250 | ALTERNATIVE_TARGET[getty] = "${base_sbindir}/agetty" | 253 | ALTERNATIVE_TARGET[getty] = "${base_sbindir}/agetty" |