[Fai-commit] r3313 - trunk/lib
fai-repository at svn.debian.org
fai-repository at svn.debian.org
Thu Mar 23 17:42:14 UTC 2006
Author: lange
Date: 2006-03-23 17:42:13 +0000 (Thu, 23 Mar 2006)
New Revision: 3313
Modified:
trunk/lib/subroutines-linux
Log:
add subroutines mkrw and mkrwsize
Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux 2006-03-22 17:28:58 UTC (rev 3312)
+++ trunk/lib/subroutines-linux 2006-03-23 17:42:13 UTC (rev 3313)
@@ -222,3 +222,18 @@
return $?
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+mkrwsize() {
+
+ mount -o size=$1 -t tmpfs tmpfs $2
+}
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+mkrw() {
+
+ # make a list of directories writeable
+ local size=100k # default size
+
+ for f in "$@"; do
+ mkrwsize $size $f
+ done
+}
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
More information about the Fai-commit
mailing list