diff options
Diffstat (limited to 'packages/altboot/files/altboot.func')
-rw-r--r-- | packages/altboot/files/altboot.func | 7 |
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 |