CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Added setup-chroot script as it is from upstream.
authorJose V Beneyto <sepen@crux.nu>
Fri, 1 Jun 2012 09:50:47 +0000 (09:50 +0000)
committerJose V Beneyto <sepen@crux.nu>
Fri, 1 Jun 2012 09:50:47 +0000 (09:50 +0000)
filesystem/setup-chroot [new file with mode: 0755]

diff --git a/filesystem/setup-chroot b/filesystem/setup-chroot
new file mode 100755 (executable)
index 0000000..1d453d8
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+mount --bind /dev /mnt/dev
+mount --bind /tmp /mnt/tmp
+mount -t proc proc /mnt/proc
+mount -t sysfs none /mnt/sys
+mount -t devpts devpts /mnt/dev/pts
+
+chroot /mnt /bin/bash
+