From: Jose V Beneyto Date: Fri, 1 Jun 2012 09:50:47 +0000 (+0000) Subject: Added setup-chroot script as it is from upstream. X-Git-Url: http://gitweb/?p=initrd.git;a=commitdiff_plain;h=b84d82f03fc3b664777730eea1aa72e023138f06 Added setup-chroot script as it is from upstream. --- diff --git a/filesystem/setup-chroot b/filesystem/setup-chroot new file mode 100755 index 0000000..1d453d8 --- /dev/null +++ b/filesystem/setup-chroot @@ -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 +