CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Added setup-chroot script as it is from upstream.
[initrd.git] / filesystem / setup-chroot
1 #!/bin/sh
2
3 mount --bind /dev /mnt/dev
4 mount --bind /tmp /mnt/tmp
5 mount -t proc proc /mnt/proc
6 mount -t sysfs none /mnt/sys
7 mount -t devpts devpts /mnt/dev/pts
8
9 chroot /mnt /bin/bash
10