summaryrefslogtreecommitdiff
path: root/recipes/initrdscripts/files/80-ext3.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/initrdscripts/files/80-ext3.sh')
-rw-r--r--recipes/initrdscripts/files/80-ext3.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes/initrdscripts/files/80-ext3.sh b/recipes/initrdscripts/files/80-ext3.sh
new file mode 100644
index 0000000000..1f52d391fa
--- /dev/null
+++ b/recipes/initrdscripts/files/80-ext3.sh
@@ -0,0 +1,17 @@
+ext3_mount () {
+ modprobe -q ext3
+
+ mkdir -p $2
+ mount -t ext3 -onoatime,data=journal,errors=continue $1 $2
+}
+
+for arg in $CMDLINE; do
+ optarg=`expr "x$arg" : 'x[^=]*=\(.*\)'`
+ echo $arg xxx $optarg
+ case $arg in
+ ext3=*)
+ dev=`expr "$optarg" : '\([^:]*\).*'`
+ path=`expr "$optarg" : '[^:]*:\([^:]*\).*'`
+ ext3_mount $dev $path ;;
+ esac
+done