X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=functions.sh;h=ab7dbe58bfd5005234f41c7a7314d034e1a90250;hb=60f69f877850cb64fd3cafd349bdb7b51c06462a;hp=5a45aa0df32937e1ca51cadf91440bfd111ef8a5;hpb=650570308db4de6878e8d6d1a2df3de6a6f1051a;p=xodist diff --git a/functions.sh b/functions.sh index 5a45aa0..ab7dbe5 100644 --- a/functions.sh +++ b/functions.sh @@ -36,18 +36,23 @@ create_fstab() fstype="$2" if [ "${fstype}" = "jffs2" ]; then - r=mtd0 + r=mtd:root else - r="LABEL=OLPCRoot" + r="LABEL=${IMG_LABEL}" fi - cat >${mntpt}/etc/fstab<${mntpt}/etc/fstab + if [ "${fstype}" = "jffs2" ]; then + echo "mtd:boot /boot jffs2 defaults,noatime 1 1" >>${mntpt}/etc/fstab + fi + + cat >>${mntpt}/etc/fstab<${mntpt}/boot/olpc.fth<