]> spindle.queued.net Git - xodist/commitdiff
mkjffs2: mount /boot in linux
authorAndres Salomon <dilinger@debian.org>
Fri, 17 Oct 2008 22:23:31 +0000 (18:23 -0400)
committerAndres Salomon <dilinger@debian.org>
Fri, 17 Oct 2008 22:23:31 +0000 (18:23 -0400)
oops, forgot this in fstab.

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

index 5829dd03d935be24e8640dfaa5b676752fbd227a..ab7dbe58bfd5005234f41c7a7314d034e1a90250 100644 (file)
@@ -41,8 +41,12 @@ create_fstab()
                r="LABEL=${IMG_LABEL}"
        fi
 
-       cat >${mntpt}/etc/fstab<<EOF
-${r} / ${fstype} defaults,noatime 1 1
+       echo "${r} / ${fstype} defaults,noatime 1 1" >${mntpt}/etc/fstab
+       if [ "${fstype}" = "jffs2" ]; then
+               echo "mtd:boot /boot jffs2 defaults,noatime 1 1" >>${mntpt}/etc/fstab
+       fi
+
+       cat >>${mntpt}/etc/fstab<<EOF
 devpts /dev/pts devpts gid=5,mode=620 0 0
 tmpfs /dev/shm tmpfs defaults,size=15% 0 0
 proc /proc proc defaults 0 0