]> spindle.queued.net Git - xodist/commitdiff
fix up olpc.fth creation for ext3 images; use disk: rather than nand:
authorAndres Salomon <dilinger@debian.org>
Wed, 20 Aug 2008 16:21:48 +0000 (12:21 -0400)
committerAndres Salomon <dilinger@debian.org>
Wed, 20 Aug 2008 16:21:48 +0000 (12:21 -0400)
Signed-off-by: Andres Salomon <dilinger@debian.org>
functions.sh

index 705c4c91f6dffde7fa7fc156d57521a627d69598..5a45aa0df32937e1ca51cadf91440bfd111ef8a5 100644 (file)
@@ -61,9 +61,11 @@ create_ofwboot()
        if [ "${fstype}" = "jffs2" ]; then
                r=mtd0
                rfs="rootfstype=jffs2"
+               dev=nand
        else
                r=/dev/sda1
                rfs=""
+               dev=disk
        fi
 
        cat >${mntpt}/boot/olpc.fth<<EOF
@@ -72,10 +74,10 @@ create_ofwboot()
 " ro root=${r} ${rfs} fbcon=font:SUN12x22" to boot-file
 game-key-mask h# 80 and if
        \\ boot from backup kernel
-       " nand:\\vmlinuz.old" to boot-device
+       " ${dev}:\\vmlinuz.old" to boot-device
 else
        \\ boot from regular kernel
-       " nand:\\vmlinuz" to boot-device
+       " ${dev}:\\vmlinuz" to boot-device
 then
 boot
 EOF