diff options
author | Max Krummenacher <max.oss.09@gmail.com> | 2018-10-05 12:05:18 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-09 19:04:02 +0100 |
commit | 194ce1539ee89b4e8ddce927623079dbe0b7c56b (patch) | |
tree | d668a32686cbd3b12767a6f93c8cd0a332a98a90 /meta/recipes-core | |
parent | 4a6d4e5b3bfda51b210cb35a6c2fa3dd42bfa3af (diff) | |
download | poky-194ce1539ee89b4e8ddce927623079dbe0b7c56b.tar.gz |
util-linux: Use update-alternatives for fsfreeze, nsenter
busybox may also provide a fsfreeze and nsenter implementation,
so use u-a to allow installing them side by side.
If one installs both, busybox and util-linux, one gets the following error
(seen on a populate-sdk run):
| ERROR: 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 do_populate_sdk extract:
| ...
| update-alternatives: Error: not linking ...sdk/image/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/sbin/fsfreeze
| to /bin/busybox.nosuid /bin/busybox.nosuid since ...sdk/image/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/sbin/fsfreeze
| exists and is not a link
| ...
(From OE-Core rev: 94e3fdff76452d3acde42b164d3ffa6b72540a40)
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
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 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index c2e02e847a..45e2203a64 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
@@ -205,9 +205,12 @@ do_install_append_class-native () { | |||
205 | 205 | ||
206 | ALTERNATIVE_PRIORITY = "80" | 206 | ALTERNATIVE_PRIORITY = "80" |
207 | 207 | ||
208 | ALTERNATIVE_${PN} = "dmesg kill more mkswap blockdev pivot_root switch_root" | 208 | ALTERNATIVE_${PN} = " \ |
209 | ALTERNATIVE_${PN} += "hexdump last lastb logger mesg renice wall unshare" | 209 | dmesg kill more mkswap blockdev pivot_root switch_root \ |
210 | ALTERNATIVE_${PN} += "setsid chrt flock utmpdump eject nologin taskset fallocate" | 210 | hexdump last lastb logger mesg renice wall unshare \ |
211 | setsid chrt flock utmpdump eject nologin taskset fallocate \ | ||
212 | fsfreeze nsenter \ | ||
213 | " | ||
211 | 214 | ||
212 | ALTERNATIVE_LINK_NAME[dmesg] = "${base_bindir}/dmesg" | 215 | ALTERNATIVE_LINK_NAME[dmesg] = "${base_bindir}/dmesg" |
213 | ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill" | 216 | ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill" |
@@ -219,6 +222,7 @@ ALTERNATIVE_LINK_NAME[switch_root] = "${base_sbindir}/switch_root" | |||
219 | ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" | 222 | ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" |
220 | ALTERNATIVE_LINK_NAME[unshare] = "${bindir}/unshare" | 223 | ALTERNATIVE_LINK_NAME[unshare] = "${bindir}/unshare" |
221 | ALTERNATIVE_LINK_NAME[fallocate] = "${bindir}/fallocate" | 224 | ALTERNATIVE_LINK_NAME[fallocate] = "${bindir}/fallocate" |
225 | ALTERNATIVE_LINK_NAME[fsfreeze] = "${sbindir}/fsfreeze" | ||
222 | ALTERNATIVE_LINK_NAME[nologin] = "${base_sbindir}/nologin" | 226 | ALTERNATIVE_LINK_NAME[nologin] = "${base_sbindir}/nologin" |
223 | 227 | ||
224 | 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" | 228 | 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" |