diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2016-11-30 19:50:26 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-05 09:22:18 +0000 |
commit | 0b040f9534ea7530112709eacd299f7313eef380 (patch) | |
tree | ddc5fd61760d827eea7747f119d33f44a1b508a2 /meta/recipes-extended | |
parent | 07f32d7af8959901914e0af561a2285c1b5df207 (diff) | |
download | poky-0b040f9534ea7530112709eacd299f7313eef380.tar.gz |
bash: use update-alternatives for the bash binary
Busybox may offer a bash applet. If enabled, the alternatives mechanism
avoids breaking logins if bash gets deinstalled while /bin/bash is configured
as a login shell.
(From OE-Core rev: cf0fd8bff79a12b6eec45145ef168ebf5afebdcc)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/bash/bash.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc index 1d08526c9e..a05b987b87 100644 --- a/meta/recipes-extended/bash/bash.inc +++ b/meta/recipes-extended/bash/bash.inc | |||
@@ -14,9 +14,11 @@ EXTRA_OECONF = "--enable-job-control --without-bash-malloc" | |||
14 | # This is what other major distros do. And this is what we wanted. See bug#5359 and bug#7137. | 14 | # This is what other major distros do. And this is what we wanted. See bug#5359 and bug#7137. |
15 | CFLAGS += "-DNON_INTERACTIVE_LOGIN_SHELLS" | 15 | CFLAGS += "-DNON_INTERACTIVE_LOGIN_SHELLS" |
16 | 16 | ||
17 | ALTERNATIVE_${PN} = "sh" | 17 | ALTERNATIVE_${PN} = "bash sh" |
18 | ALTERNATIVE_LINK_NAME[bash] = "${base_bindir}/bash" | ||
19 | ALTERNATIVE_TARGET[bash] = "${base_bindir}/bash" | ||
18 | ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh" | 20 | ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh" |
19 | ALTERNATIVE_TARGET[sh] = "${base_bindir}/bash" | 21 | ALTERNATIVE_TARGET[sh] = "${base_bindir}/bash.${BPN}" |
20 | ALTERNATIVE_PRIORITY = "100" | 22 | ALTERNATIVE_PRIORITY = "100" |
21 | 23 | ||
22 | RDEPENDS_${PN} += "base-files" | 24 | RDEPENDS_${PN} += "base-files" |