#!/bin/sh /usr/bin/text2screen -s 2 -H center -y 20 -T 0 -t "Starting boot.sh" cd / exec /bin/sh -c "`tail -n +4 $0`" /usr/bin/text2screen -s 2 -H center -y 40 -T 0 -t "Tail boot.sh" cd /mnt/new_root mkdir -p maemo5/home/user mount -t none -o bind user maemo5/home/user mount -t none -o bind maemo5 . cd . /usr/bin/text2screen -s 2 -H center -y 60 -T 0 -t "Mount done" umount /dev/pts umount /sys umount /tmp umount /proc rm -f /proc/mounts /usr/bin/text2screen -s 2 -H center -y 80 -T 0 -t "Umount done" mkdir -p mnt/initfs pivot_root . mnt/initfs /usr/bin/text2screen -s 2 -H center -y 100 -T 0 -t "Pivot_root done" mount -t none -o move /mnt/initfs/mnt/new_root/maemo5/home/user /home/user #umount /mnt/initfs/mnt/new_root /sbin/fiasco-do-update /usr/bin/text2screen -s 2 -H center -y 100 -T 0 -t "Fiasco-do-update done" exec /usr/sbin/chroot . /sbin/init $def_runlevel <dev/console >dev/console 2>&1 /usr/bin/text2screen -s 2 -H center -y 120 -T 0 -t "Chroot failed" sleep 10