]> spindle.queued.net Git - xodist/blobdiff - functions.sh
mkext3: use labels in fstab/olpc.fth rather than hardcoding /dev/sda1
[xodist] / 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