From 782dc3c20561aea0fb13529d543fb814fda208f7 Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Mon, 23 Jan 2006 18:21:48 +0000 Subject: altboot: - Fixed a bug where the /media/ROM mountpoint wasn't moved into the new rootfs - Added support for booting off USB storage devices --- packages/altboot/files/altboot.func | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'packages/altboot/files/altboot.func') 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 -- cgit v1.2.3