summaryrefslogtreecommitdiff
path: root/packages/altboot/files/altboot.func
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-01-23 18:21:48 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-23 18:21:48 +0000
commit782dc3c20561aea0fb13529d543fb814fda208f7 (patch)
tree3cd4fdb7b3cf6ec9f649c3bb8390db44b6bfe7b9 /packages/altboot/files/altboot.func
parent6b447a6a8392db239d0f57457d5b59b0ec30aec0 (diff)
altboot:
- Fixed a bug where the /media/ROM mountpoint wasn't moved into the new rootfs - Added support for booting off USB storage devices
Diffstat (limited to 'packages/altboot/files/altboot.func')
-rw-r--r--packages/altboot/files/altboot.func7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/altboot/files/altboot.func b/packages/altboot/files/altboot.func
index 91984a89ee..1c21a5f2f8 100644
--- a/packages/altboot/files/altboot.func
+++ b/packages/altboot/files/altboot.func
@@ -162,8 +162,13 @@ pivot_image() {
then
echo "Success"
+ # This is important since we are still cd'ed into the old root
cd /
-
+
+ ! test -d "$1" && mkdir -p "$1"
+
+ # Move mountpoints from the old rootfs into the new one.
+ # The *real* mount is kinda touchy feely about that
/bin/busybox mount -o move /media/ROM$1 $1
/bin/busybox mount -o move /media/ROM/dev /dev
/bin/busybox mount -o move /media/ROM/proc /proc >/dev/null 2>&1