mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
07f32d7af8
commit
0b040f9534
@@ -14,9 +14,11 @@ EXTRA_OECONF = "--enable-job-control --without-bash-malloc"
|
||||
# This is what other major distros do. And this is what we wanted. See bug#5359 and bug#7137.
|
||||
CFLAGS += "-DNON_INTERACTIVE_LOGIN_SHELLS"
|
||||
|
||||
ALTERNATIVE_${PN} = "sh"
|
||||
ALTERNATIVE_${PN} = "bash sh"
|
||||
ALTERNATIVE_LINK_NAME[bash] = "${base_bindir}/bash"
|
||||
ALTERNATIVE_TARGET[bash] = "${base_bindir}/bash"
|
||||
ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
|
||||
ALTERNATIVE_TARGET[sh] = "${base_bindir}/bash"
|
||||
ALTERNATIVE_TARGET[sh] = "${base_bindir}/bash.${BPN}"
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
|
||||
RDEPENDS_${PN} += "base-files"
|
||||
|
||||
Reference in New Issue
Block a user