summaryrefslogtreecommitdiff
path: root/recipes/initrdscripts/files/80-ext3.sh
blob: 1f52d391faef6f7ea31bd5481199cbf1ade52ed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ext3_mount () {
	modprobe -q ext3

	mkdir -p $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