Subject: [PATCH 3/4] Use tmpfs instead of mfs.

From: Rumko <[email-masked]>
Date: Wed, 14 Apr 2010 11:13:23 +0000

---
 etc/rc.d/diskless     |    2 +-
 etc/rc.d/initdiskless |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/etc/rc.d/diskless b/etc/rc.d/diskless
index ff2a4ac..d4cb867 100644
--- a/etc/rc.d/diskless
+++ b/etc/rc.d/diskless
@@ -46,7 +46,7 @@ name="diskless"
 #   $1 = size
 #   $2 = mount point
 mount_md() {
-	/sbin/mount_mfs -s $1 swap $2
+	/sbin/mount_tmpfs -s `expr $1 '*' 512` tmpfs $2
 }
 
 # If there is a global system configuration file, suck it in.
diff --git a/etc/rc.d/initdiskless b/etc/rc.d/initdiskless
index 5d63d08..cc8f8d7 100644
--- a/etc/rc.d/initdiskless
+++ b/etc/rc.d/initdiskless
@@ -105,7 +105,7 @@ chkerr() {
 # Create a generic memory disk
 #
 mount_md() {
-	/sbin/mount_mfs -i 4096 -s $1 swap $2
+	/sbin/mount_tmpfs -s `expr $1 '*' 512` tmpfs $2
 }
 
 # Create the memory filesystem if it has not already been created
-- 
1.6.6.2