summaryrefslogtreecommitdiff
path: root/packages/initrdscripts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/initrdscripts')
-rw-r--r--packages/initrdscripts/files/00-psplash.sh4
-rw-r--r--packages/initrdscripts/files/80-ext3.sh17
-rw-r--r--packages/initrdscripts/files/80-squashfs.sh17
-rw-r--r--packages/initrdscripts/files/98-aufs.sh17
-rw-r--r--packages/initrdscripts/files/99-psplash.sh2
-rw-r--r--packages/initrdscripts/initramfs-module-aufs_1.0.bb12
-rw-r--r--packages/initrdscripts/initramfs-module-ext3_1.0.bb12
-rw-r--r--packages/initrdscripts/initramfs-module-psplash_1.0.bb13
-rw-r--r--packages/initrdscripts/initramfs-module-squashfs_1.0.bb12
9 files changed, 106 insertions, 0 deletions
diff --git a/packages/initrdscripts/files/00-psplash.sh b/packages/initrdscripts/files/00-psplash.sh
new file mode 100644
index 0000000000..491fe13fc3
--- /dev/null
+++ b/packages/initrdscripts/files/00-psplash.sh
@@ -0,0 +1,4 @@
+mkdir -p /mnt/.psplash
+mount tmpfs -t tmpfs /mnt/.psplash -o,size=40k
+
+psplash &
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/files/80-squashfs.sh b/packages/initrdscripts/files/80-squashfs.sh
new file mode 100644
index 0000000000..22c09544a0
--- /dev/null
+++ b/packages/initrdscripts/files/80-squashfs.sh
@@ -0,0 +1,17 @@
+squashfs_mount () {
+ modprobe -q squashfs
+
+ mkdir $2
+ mount -t squashfs $1 $2
+}
+
+for arg in $CMDLINE; do
+ optarg=`expr "x$arg" : 'x[^=]*=\(.*\)'`
+ echo $arg xxx $optarg
+ case $arg in
+ squashfs=*)
+ dev=`expr "$optarg" : '\([^:]*\).*'`
+ path=`expr "$optarg" : '[^:]*:\([^:]*\).*'`
+ squashfs_mount $dev $path ;;
+ esac
+done
diff --git a/packages/initrdscripts/files/98-aufs.sh b/packages/initrdscripts/files/98-aufs.sh
new file mode 100644
index 0000000000..df05418c57
--- /dev/null
+++ b/packages/initrdscripts/files/98-aufs.sh
@@ -0,0 +1,17 @@
+aufs_mount () {
+ modprobe -q aufs
+
+ mkdir $2 /mnt
+ mount -t aufs -o br:$1:$2 none /mnt
+}
+
+for arg in $CMDLINE; do
+ optarg=`expr "x$arg" : 'x[^=]*=\(.*\)'`
+ case $arg in
+ aufs=*)
+ rw=`expr "$optarg" : '\([^:]*\).*'`
+ ro=`expr "$optarg" : '[^:]*:\([^:]*\).*'`
+ aufs_mount $rw $ro
+ BOOT_ROOT=/mnt ;;
+ esac
+done
diff --git a/packages/initrdscripts/files/99-psplash.sh b/packages/initrdscripts/files/99-psplash.sh
new file mode 100644
index 0000000000..fa488cff8b
--- /dev/null
+++ b/packages/initrdscripts/files/99-psplash.sh
@@ -0,0 +1,2 @@
+mkdir -p /mnt/mnt/.psplash
+mount -n -o move /mnt/.psplash /mnt/mnt/.psplash
diff --git a/packages/initrdscripts/initramfs-module-aufs_1.0.bb b/packages/initrdscripts/initramfs-module-aufs_1.0.bb
new file mode 100644
index 0000000000..aa31ceee36
--- /dev/null
+++ b/packages/initrdscripts/initramfs-module-aufs_1.0.bb
@@ -0,0 +1,12 @@
+SRC_URI = "file://98-aufs.sh"
+PR = "r1"
+DESCRIPTION = "An initramfs module for mount aufs."
+RDEPENDS = "initramfs-uniboot aufs"
+
+do_install() {
+ install -d ${D}/initrd.d
+ install -m 0755 ${WORKDIR}/98-aufs.sh ${D}/initrd.d/
+}
+
+PACKAGE_ARCH = "all"
+FILES_${PN} += " /initrd.d/* "
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/* "
diff --git a/packages/initrdscripts/initramfs-module-psplash_1.0.bb b/packages/initrdscripts/initramfs-module-psplash_1.0.bb
new file mode 100644
index 0000000000..a765b36ad3
--- /dev/null
+++ b/packages/initrdscripts/initramfs-module-psplash_1.0.bb
@@ -0,0 +1,13 @@
+SRC_URI = "file://00-psplash.sh file://99-psplash.sh"
+PR = "r1"
+RDEPENDS = "initramfs-uniboot psplash"
+DESCRIPTION = "An initramfs module to enable psplash."
+
+do_install() {
+ install -d ${D}/initrd.d
+ install -m 0755 ${WORKDIR}/00-psplash.sh ${D}/initrd.d/
+ install -m 0755 ${WORKDIR}/99-psplash.sh ${D}/initrd.d/
+}
+
+PACKAGE_ARCH = "all"
+FILES_${PN} += " /initrd.d/* "
diff --git a/packages/initrdscripts/initramfs-module-squashfs_1.0.bb b/packages/initrdscripts/initramfs-module-squashfs_1.0.bb
new file mode 100644
index 0000000000..f3d50ffa49
--- /dev/null
+++ b/packages/initrdscripts/initramfs-module-squashfs_1.0.bb
@@ -0,0 +1,12 @@
+SRC_URI = "file://80-squashfs.sh"
+PR = "r1"
+DESCRIPTION = "An initramfs module for mount squashfs."
+RDEPENDS = "initramfs-uniboot"
+
+do_install() {
+ install -d ${D}/initrd.d
+ install -m 0755 ${WORKDIR}/80-squashfs.sh ${D}/initrd.d/
+}
+
+PACKAGE_ARCH = "all"
+FILES_${PN} += " /initrd.d/* "