more universal fixes

pull/5/head v1.3
Tomas M 2012-10-11 21:59:44 -05:00
parent 83a9885ec6
commit e5df4072ca
1 changed files with 3 additions and 1 deletions

View File

@ -428,9 +428,11 @@ change_root()
cd "$1" cd "$1"
# make sure important devices are in union # make sure important files devices are in union
mkdir -p boot dev proc sys tmp mnt run
if [ ! -e dev/console ]; then mknod dev/console c 5 1; fi if [ ! -e dev/console ]; then mknod dev/console c 5 1; fi
if [ ! -e dev/null ]; then mknod dev/null c 1 3; fi if [ ! -e dev/null ]; then mknod dev/null c 1 3; fi
if [ ! -e sbin/fsck.aufs ]; then ln -s /bin/true sbin/fsck.aufs; fi
# find chroot and init # find chroot and init
if [ -x bin/chroot ]; then CHROOT=bin/chroot; fi if [ -x bin/chroot ]; then CHROOT=bin/chroot; fi