Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ubu-chroot.or
- +++ ubu-chroot
- @@ -246,10 +246,10 @@
- echo "Entering chroot as $user"
- if grep squeeze ${uburoot}/etc/debian_version > /dev/null; then
- # For older 10.04
- - setarch x86_64 chroot ${uburoot} /usr/bin/sudo -i -u $user "if [ -d \"$cwd\" ]; then cd \"$cwd\"; fi; exec bash --init-file /parentroot/usr/share/ubu-chroot/mer-ubusdk-bash-setup -i";
- + SHELL=/bin/bash setarch x86_64 chroot ${uburoot} /usr/bin/sudo -s -u $user "if [ -d \"$cwd\" ]; then cd \"$cwd\"; fi; exec bash --init-file /parentroot/usr/share/ubu-chroot/mer-ubusdk-bash-setup -i";
- elif grep wheezy ${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 "if [ -d \"$cwd\" ]; then cd \"$cwd\"; fi; exec bash --init-file /parentroot/usr/share/ubu-chroot/mer-ubusdk-bash-setup"
- + SHELL=/bin/bash setarch x86_64 chroot ${uburoot} /usr/bin/sudo -s -u $user exec bash -i -c "if [ -d \"$cwd\" ]; then cd \"$cwd\"; fi; exec bash --init-file /parentroot/usr/share/ubu-chroot/mer-ubusdk-bash-setup"
- else
- echo Unknown ubuntu version
- exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement