Comments
Patch
@@ -1,17 +1,13 @@
squashfs_mount () {
modprobe -q squashfs
- mkdir $2
+ mkdir -p $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
+squashfs=$(getarg squashfs=)
+if [ -n "$squashfs" ]; then
+ dev=`expr "$squashfs" : '\([^:]*\).*'`
+ path=`expr "$squashfs" : '[^:]*:\([^:]*\).*'`
+ squashfs_mount $dev $path
+fi
@@ -1,5 +1,5 @@
SRC_URI = "file://80-squashfs.sh"
-PR = "r2"
+PR = "r3"
DESCRIPTION = "An initramfs module for mount squashfs."
RDEPENDS_${PN} = "initramfs-uniboot"
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> --- recipes/initrdscripts/files/80-squashfs.sh | 18 +++++++----------- .../initrdscripts/initramfs-module-squashfs_1.0.bb | 2 +- 2 files changed, 8 insertions(+), 12 deletions(-)