]> spindle.queued.net Git - xodist/commitdiff
mkext3: use labels in fstab/olpc.fth rather than hardcoding /dev/sda1
authorAndres Salomon <dilinger@debian.org>
Thu, 16 Oct 2008 05:18:21 +0000 (01:18 -0400)
committerAndres Salomon <dilinger@debian.org>
Thu, 16 Oct 2008 05:18:21 +0000 (01:18 -0400)
..this should allow ext3 to work for things like SD.

Signed-off-by: Andres Salomon <dilinger@debian.org>
functions.sh

index bc78bfbbd941089a855ed841511b7f5bd9cede65..371a03bd058c39e8ee17bad56badcf82a250d96f 100644 (file)
@@ -38,7 +38,7 @@ create_fstab()
        if [ "${fstype}" = "jffs2" ]; then
                r=mtd0
        else
-               r="LABEL=OLPCRoot"
+               r="LABEL=${IMG_LABEL}"
        fi
 
        cat >${mntpt}/etc/fstab<<EOF
@@ -64,7 +64,7 @@ create_ofwboot()
                rfs="rootfstype=jffs2"
                dev=nand
        else
-               r=/dev/sda1
+               r="LABEL=${IMG_LABEL}"
                rfs=""
                dev=disk
        fi