summaryrefslogtreecommitdiff
path: root/chroot.sh
blob: 3bdc9b3f3b2183573263d70dcea5af2f4a5a2ba8 (plain)
  1. #!/bin/sh
  2. . ./common-settings || exit 1
  3. if [ "$1" = "temp" ]; then
  4. shift
  5. ./mount.sh temp || exit 1
  6. export debian_chroot="flashybrid"
  7. #chroot "$target" /bin/bash -l $@
  8. chroot "$targettemp" $@
  9. exitcode=$?
  10. ./umount.sh temp
  11. else
  12. ./mount.sh || exit 1
  13. export debian_chroot="flashybrid"
  14. #chroot "$target" /bin/bash -l $@
  15. chroot "$mountpoint" $@
  16. exitcode=$?
  17. ./umount.sh
  18. fi
  19. exit $exitcode