about summary refs log tree commit diff stats
path: root/linux/scripts/chroot.sh
blob: 00fbd78139de150c555da333b5bbe4267cd4d4ab (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash

CHROOT=/mnt

chroot $CHROOT /usr/bin/env -i \
  HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
  PATH=/bin:/usr/bin:/sbin:/usr/sbin \
  /bin/bash --login