Skip to content

Conversation

@vanyasem
Copy link

This fixes -bash: line 0: exec: bash: not found and bash: exec: bash: not found errors by specifying an absolute path to bash binaries inside the chroot

This fixes `-bash: line 0: exec: bash: not found` and `bash: exec: bash: not found` errors by specifying an absolute path to bash binaries inside the chroot
elif grep "wheezy\|jessie" ${uburoot}/etc/debian_version > /dev/null; then
# This is for ubuntu 12.04 (arg quoting for sudo is different)
setarch x86_64 chroot ${uburoot} /usr/bin/sudo -i -u $user exec bash -i -c "export MERSDKUBU=1; if [ -d \"$cwd\" ]; then cd \"$cwd\"; fi; exec bash --init-file /parentroot/usr/share/ubu-chroot/mer-ubusdk-bash-setup"
setarch x86_64 chroot ${uburoot} /usr/bin/sudo -i -u $user exec /bin/bash -i -c "export MERSDKUBU=1; if [ -d \"$cwd\" ]; then cd \"$cwd\"; fi; exec /bin/bash --init-file /parentroot/usr/share/ubu-chroot/mer-ubusdk-bash-setup"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants