X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=functions.sh;h=4e1e0c98ee12fa41f5057dfef61a31dfe840b70d;hb=e94c6f8daa447b6ea474e34c97c8a78a98935360;hp=29d4ae99eaf954c1cce6bc394ba7bbb719375ec0;hpb=97a85aa96a97476f49c6caaa754d5144dbc903b9;p=xodist diff --git a/functions.sh b/functions.sh index 29d4ae9..4e1e0c9 100644 --- a/functions.sh +++ b/functions.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # Copyright © 2008 Andres Salomon # @@ -36,13 +36,17 @@ create_fstab() fstype="$2" if [ "${fstype}" = "jffs2" ]; then - r=mtd0 + r=mtd:root else 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<$logpipe 2>&1 +}