summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-07-02 13:37:43 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-07-02 13:37:43 (EDT)
commit35a74c739eedd275c25b409b4376ff3bbf734804 (patch)
tree322f37afb87a49a67fb487960980bc91a5feba1d
parent604965c361530521c8f5294209ae8e4914ef71e8 (diff)
bootstrap-stage1-install.sh: Properly mount stuff.
-rwxr-xr-xbootstrap-stage1-install.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/bootstrap-stage1-install.sh b/bootstrap-stage1-install.sh
index bfc7a0f..a870495 100755
--- a/bootstrap-stage1-install.sh
+++ b/bootstrap-stage1-install.sh
@@ -146,8 +146,14 @@ setup_root()
{
cd root
- mkdir -p dev
- >dev/null
+ case "${ARCH}" in
+ *-linux-*)
+ mkdir -p proc sys dev
+ sudo mount -t proc proc proc
+ sudo mount -t sysfs sys sys
+ sudo mount -o bind /dev dev
+ ;;
+ esac
# TODO: base-files will eventually handle this.
mkdir -p tmp