[add support for tmpfs, make ramroot_fs_size (in kilobytes) common for all filesystems
timo.lindfors@iki.fi**20080202150705] {
hunk ./create-flash-image 39
-sudo sed -i "/^kernel/s@ro \$@ro ramroot_uuid=${ramroot_uuid} ramroot_snapshot=0 ramroot_fs=jffs2 ramroot_jffs2size=90000 @" fs/snapshot/0/boot/grub/menu.lst
+sudo sed -i "/^kernel/s@ro \$@ro ramroot_uuid=${ramroot_uuid} ramroot_snapshot=0 ramroot_fs=jffs2 ramroot_fs_size=90000 @" fs/snapshot/0/boot/grub/menu.lst
hunk ./scripts/local-premount 17
-    modprobe mtdram total_size=$ramroot_jffs2size erase_size=128
+    modprobe mtdram total_size=$ramroot_fs_size erase_size=128
hunk ./scripts/local-premount 20
+if [ "$ramroot_fs" = "tmpfs" ]; then
+    size=`expr $ramroot_fs_size '*' 1024`
+    echo FSTYPE=tmpfs > /conf/param.conf
+    echo ROOTFLAGS=-osize=$size >> /conf/param.conf
+    echo ROOT=none >> /conf/param.conf
+    echo readonly=n >> /conf/param.conf
+fi
}
