about summary refs log tree commit diff stats
path: root/scripts/chroot.sh
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2016-08-20 05:35:06 +0100
committerSilvino Silva <silvino@bk.ru>2016-08-20 05:35:06 +0100
commitc178db81d64eed21177b4c5d78ab3db7a785b7fe (patch)
tree986f5a2a25b3e7ab65de1fcba71648b1c405064f /scripts/chroot.sh
parentaa990cd7e4f7be6e760e9cbdd402041dfecca8c7 (diff)
downloaddoc-c178db81d64eed21177b4c5d78ab3db7a785b7fe.tar.gz
initial ports, scripts revision
Diffstat (limited to 'scripts/chroot.sh')
-rw-r--r--scripts/chroot.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/chroot.sh b/scripts/chroot.sh
new file mode 100644
index 0000000..00fbd78
--- /dev/null
+++ b/scripts/chroot.sh
@@ -0,0 +1,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
+