Mercurial > hg > aboriginal
changeset 472:726224afbcc9
If the root filesystem hasn't got /dev/console it "can't open initial console" for init, so running a shell or hello-static produces no output. (Using oneit works because it redirects the console after populating its own /dev, but debugging early boot issues becomes much harder than necessary.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 12 Nov 2008 13:18:15 -0600 |
parents | a2496e1946d3 |
children | eac92c5b7424 |
files | package-mini-native.sh |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/package-mini-native.sh Wed Nov 12 09:39:02 2008 -0600 +++ b/package-mini-native.sh Wed Nov 12 13:18:15 2008 -0600 @@ -77,6 +77,8 @@ tar xf "$BUILD/mini-native-${ARCH}.tar.bz2" mv mini-native-*/* . rm -rf mini-native-* +mkdir dev +mknod dev/console c 5 1 df . cd .. umount "$TARDEST" @@ -107,6 +109,8 @@ TARDEST="$BUILD/temp-$ARCH" mount -o loop "$IMAGE" "$TARDEST" && cp -a "$BUILD/mini-native-${ARCH}"/. "$TARDEST" && + mkdir "$TARDEST"/dev && + mknod "$TARDEST"/dev/console c 5 1 && df "$TARDEST" RETVAL=$?