Mercurial > hg > aboriginal
comparison root-filesystem.sh @ 833:18fa21056b01
System Images' sbin/init.sh should mount /dev/hdc (if it exists) on /mnt, and then run /mnt/init (instead of a shell prompt) if that exists.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 02 Oct 2009 02:12:47 -0500 |
parents | d1a88d878e18 |
children | 3cd64af0d1b6 |
comparison
equal
deleted
inserted
replaced
832:fc498452494a | 833:18fa21056b01 |
---|---|
34 # Determine which directory layout we're using | 34 # Determine which directory layout we're using |
35 | 35 |
36 if [ -z "$ROOT_NODIRS" ] | 36 if [ -z "$ROOT_NODIRS" ] |
37 then | 37 then |
38 ROOT_TOPDIR="$STAGE_DIR/usr" | 38 ROOT_TOPDIR="$STAGE_DIR/usr" |
39 mkdir -p "$STAGE_DIR"/{tmp,proc,sys,dev,home} || dienow | 39 mkdir -p "$STAGE_DIR"/{tmp,proc,sys,dev,home,mnt} || dienow |
40 for i in bin sbin lib etc | 40 for i in bin sbin lib etc |
41 do | 41 do |
42 mkdir -p "$ROOT_TOPDIR/$i" || dienow | 42 mkdir -p "$ROOT_TOPDIR/$i" || dienow |
43 ln -s "usr/$i" "$STAGE_DIR/$i" || dienow | 43 ln -s "usr/$i" "$STAGE_DIR/$i" || dienow |
44 done | 44 done |