diff options
-rw-r--r-- | meta/classes/sanity.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 7682ffbb8c..a11b581a08 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -929,7 +929,9 @@ def check_sanity_everybuild(status, d): | |||
929 | # If /bin/sh is a symlink, check that it points to dash or bash | 929 | # If /bin/sh is a symlink, check that it points to dash or bash |
930 | if os.path.islink('/bin/sh'): | 930 | if os.path.islink('/bin/sh'): |
931 | real_sh = os.path.realpath('/bin/sh') | 931 | real_sh = os.path.realpath('/bin/sh') |
932 | if not real_sh.endswith('/dash') and not real_sh.endswith('/bash'): | 932 | # Due to update-alternatives, the shell name may take various |
933 | # forms, such as /bin/dash, bin/bash, /bin/bash.bash ... | ||
934 | if '/dash' not in real_sh and '/bash' not in real_sh: | ||
933 | status.addresult("Error, /bin/sh links to %s, must be dash or bash\n" % real_sh) | 935 | status.addresult("Error, /bin/sh links to %s, must be dash or bash\n" % real_sh) |
934 | 936 | ||
935 | def check_sanity(sanity_data): | 937 | def check_sanity(sanity_data): |