diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2009-01-13 16:03:30 -0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2009-01-13 16:04:47 -0200 |
commit | 039719a866dd668be1dc24c72711f5b882669c6f (patch) | |
tree | eb6f8682e944d680060c065e62acc6a228d6a8a9 /packages/initrdscripts/files | |
parent | aa194b5fec98a758785b6e9b27fc6666f16be2a3 (diff) |
initramfs-module-squashfs: add
This is used to make the squashfs usage easier for initramfs users. It
has been created by O.S. Systems.
Diffstat (limited to 'packages/initrdscripts/files')
-rw-r--r-- | packages/initrdscripts/files/80-squashfs.sh | 17 |
1 files changed, 17 insertions, 0 deletions
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 |