aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando Reyes (likewhoa) <design@missionaccomplish.com>2014-05-22 16:52:30 -0400
committerRick Farina (Zero_Chaos) <zerochaos@gentoo.org>2015-04-29 13:31:44 -0400
commit9e90b4923c0b017ebbdf8864371e6fa108cee058 (patch)
treef332ae77588e0f08b98c9e14939ddde891dd9b22
parentDocument the very large if structure for AUFS. (diff)
downloadgenkernel-9e90b4923c0b017ebbdf8864371e6fa108cee058.tar.gz
genkernel-9e90b4923c0b017ebbdf8864371e6fa108cee058.tar.bz2
genkernel-9e90b4923c0b017ebbdf8864371e6fa108cee058.zip
Fix kernel line argument handling.
Fix kernel line argument handling since it's using old deprecated function.
-rw-r--r--defaults/linuxrc34
1 files changed, 17 insertions, 17 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc
index aaf27ad..8620352 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -255,35 +255,35 @@ do
;;
aufs\=*)
USE_AUFS_NORMAL=1
- CMD_AUFS=$(parse_opt "${x}")
- echo ${CMD_AUFS}|grep , >/dev/null 2>&1
+ echo ${x#*=} | grep , &>/dev/null
+
if [ "$?" -eq '0' ]
then
- UID=$(echo ${CMD_AUFS#*,})
- AUFS=$(echo ${CMD_AUFS%,*})
+ UID=${x#*,}
+ AUFS=${x%,*}
else
- AUFS=${CMD_AUFS}
+ AUFS=${x#*=}
fi
;;
aufs.changes\=*)
- USE_AUFS_NORMAL=1
- CMD_AUFS=$(parse_opt "${x}")
- echo ${CMD_AUFS}|grep , >/dev/null 2>&1
- if [ "$?" -eq '0' ]
- then
- UID=$(echo ${CMD_AUFS#*,})
- AUFS=$(echo ${CMD_AUFS%,*})
- else
- AUFS=${CMD_AUFS}
- fi
- ;;
+ USE_AUFS_NORMAL=1
+ echo ${x#*=} | grep , &>/dev/null
+
+ if [ "$?" -eq '0' ]
+ then
+ UID=${x#*,}
+ AUFS=${x%,*}
+ else
+ AUFS=${x#*=}
+ fi
+ ;;
aufs.persistent)
USE_AUFS_NORMAL=1
AUFS="detect"
;;
# Allow user to specify the modules location
aufs.modules\=*)
- MODULESD=$(parse_opt "${x}")
+ MODULESD=${x#*=}
;;
unionfs)
if [ ! -x /sbin/unionfs ]