summaryrefslogtreecommitdiff
path: root/packages/initrdscripts/files/80-ext3.sh
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2009-01-13 16:02:50 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2009-01-13 16:04:47 -0200
commitaa194b5fec98a758785b6e9b27fc6666f16be2a3 (patch)
tree16f467389d05417b6b265870b93a93f4f9609c02 /packages/initrdscripts/files/80-ext3.sh
parent1a098e0168ff4ab7a3354a4820e53251a949208e (diff)
initramfs-module-ext3: add
This is used to make the ext3 usage easier for initramfs users. It has been created by O.S. Systems.
Diffstat (limited to 'packages/initrdscripts/files/80-ext3.sh')
-rw-r--r--packages/initrdscripts/files/80-ext3.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/initrdscripts/files/80-ext3.sh b/packages/initrdscripts/files/80-ext3.sh
new file mode 100644
index 0000000000..ed1909947b
--- /dev/null
+++ b/packages/initrdscripts/files/80-ext3.sh
@@ -0,0 +1,17 @@
+ext3_mount () {
+ modprobe -q ext3
+
+ mkdir $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