diff options
| author | Randy MacLeod <Randy.MacLeod@windriver.com> | 2018-10-16 19:24:27 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-18 10:56:55 +0100 |
| commit | 7d9b08e37a7a6d86aca0ea891859ac4b56917066 (patch) | |
| tree | 5ecdbc59499e8272ee567900d65622a514054a1b /meta/recipes-core/util-linux | |
| parent | 5283aeaeca9b271feb099f210a326b1df48adcef (diff) | |
| download | poky-7d9b08e37a7a6d86aca0ea891859ac4b56917066.tar.gz | |
util-linux: fix alternatives setting for switch-root
The alternative setting for switch_root belongs to the util-linux-switch-root
package instead of the util-linux package. Fix this problem to avoid
a dangling symlink:
/usr/bin/switch_root-> /usr/bin/switch_root.util-linux
on target and in the sdk.
(From OE-Core rev: b8366a7057da8b880ca36c38999ef658594f4fde)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/util-linux')
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 60ac9c2006..3d8b3ff592 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
| @@ -206,7 +206,7 @@ do_install_append_class-native () { | |||
| 206 | ALTERNATIVE_PRIORITY = "80" | 206 | ALTERNATIVE_PRIORITY = "80" |
| 207 | 207 | ||
| 208 | ALTERNATIVE_${PN} = " \ | 208 | ALTERNATIVE_${PN} = " \ |
| 209 | dmesg kill more mkswap blockdev pivot_root switch_root \ | 209 | dmesg kill more mkswap blockdev pivot_root \ |
| 210 | hexdump last lastb logger mesg renice wall \ | 210 | hexdump last lastb logger mesg renice wall \ |
| 211 | setsid chrt flock utmpdump eject nologin taskset fallocate \ | 211 | setsid chrt flock utmpdump eject nologin taskset fallocate \ |
| 212 | fsfreeze nsenter \ | 212 | fsfreeze nsenter \ |
| @@ -218,7 +218,6 @@ ALTERNATIVE_LINK_NAME[more] = "${base_bindir}/more" | |||
| 218 | ALTERNATIVE_LINK_NAME[mkswap] = "${base_sbindir}/mkswap" | 218 | ALTERNATIVE_LINK_NAME[mkswap] = "${base_sbindir}/mkswap" |
| 219 | ALTERNATIVE_LINK_NAME[blockdev] = "${base_sbindir}/blockdev" | 219 | ALTERNATIVE_LINK_NAME[blockdev] = "${base_sbindir}/blockdev" |
| 220 | ALTERNATIVE_LINK_NAME[pivot_root] = "${base_sbindir}/pivot_root" | 220 | ALTERNATIVE_LINK_NAME[pivot_root] = "${base_sbindir}/pivot_root" |
| 221 | ALTERNATIVE_LINK_NAME[switch_root] = "${base_sbindir}/switch_root" | ||
| 222 | ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" | 221 | ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" |
| 223 | ALTERNATIVE_LINK_NAME[fallocate] = "${bindir}/fallocate" | 222 | ALTERNATIVE_LINK_NAME[fallocate] = "${bindir}/fallocate" |
| 224 | ALTERNATIVE_LINK_NAME[fsfreeze] = "${sbindir}/fsfreeze" | 223 | ALTERNATIVE_LINK_NAME[fsfreeze] = "${sbindir}/fsfreeze" |
| @@ -294,6 +293,9 @@ ALTERNATIVE_LINK_NAME[mountpoint] = "${base_bindir}/mountpoint" | |||
| 294 | ALTERNATIVE_util-linux-unshare = "unshare" | 293 | ALTERNATIVE_util-linux-unshare = "unshare" |
| 295 | ALTERNATIVE_LINK_NAME[unshare] = "${bindir}/unshare" | 294 | ALTERNATIVE_LINK_NAME[unshare] = "${bindir}/unshare" |
| 296 | 295 | ||
| 296 | ALTERNATIVE_util-linux-switch-root = "switch_root" | ||
| 297 | ALTERNATIVE_LINK_NAME[switch_root] = "${base_sbindir}/switch_root" | ||
| 298 | |||
| 297 | BBCLASSEXTEND = "native nativesdk" | 299 | BBCLASSEXTEND = "native nativesdk" |
| 298 | 300 | ||
| 299 | python do_package_prepend () { | 301 | python do_package_prepend () { |
