summaryrefslogtreecommitdiff
path: root/packages/initrdscripts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/initrdscripts')
-rw-r--r--packages/initrdscripts/files/80-ext3.sh17
-rw-r--r--packages/initrdscripts/initramfs-module-ext3_1.0.bb12
2 files changed, 29 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
diff --git a/packages/initrdscripts/initramfs-module-ext3_1.0.bb b/packages/initrdscripts/initramfs-module-ext3_1.0.bb
new file mode 100644
index 0000000000..e95dcdc2ed
--- /dev/null
+++ b/packages/initrdscripts/initramfs-module-ext3_1.0.bb
@@ -0,0 +1,12 @@
+SRC_URI = "file://80-ext3.sh"
+PR = "r1"
+DESCRIPTION = "An initramfs module for mount ext3."
+RDEPENDS = "initramfs-uniboot"
+
+do_install() {
+ install -d ${D}/initrd.d
+ install -m 0755 ${WORKDIR}/80-ext3.sh ${D}/initrd.d/
+}
+
+PACKAGE_ARCH = "all"
+FILES_${PN} += " /initrd.d/* "