From b90a85b663e33c2f98605db6456fc20867b195a1 Mon Sep 17 00:00:00 2001 From: ownedcore Date: Tue, 7 Jan 2014 22:10:52 +0100 Subject: [PATCH] Create complete chroot with proc, sys and dev --- build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.sh b/build.sh index 352cf45..c27edad 100644 --- a/build.sh +++ b/build.sh @@ -126,6 +126,13 @@ mkfs.ext4 /dev/loop1 mkdir -p $DEST/output/sdcard/ mount /dev/loop1 $DEST/output/sdcard/ +# mount proc, sys and dev +mount -t proc chproc $DEST/output/sdcard/proc +mount -t sysfs chsys $DEST/output/sdcard/sys +# This works on half the systems I tried. Else use bind option +mount -t devtmpfs chdev $DEST/output/sdcard/dev || mount --bind /dev $DEST/output/sdcard/dev +mount -t devpts chpts $DEST/output/sdcard/dev/pts + echo "------ Install basic filesystem"