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-08-11 14:21:15 -0400
commitd53692f164116a3f660735fedd667925c40e3056 (patch)
tree7670d431ae19ae563d022384aae687eb74ff7e11 /defaults
parentDocument the very large if structure for AUFS. (diff)
downloadgenkernel-d53692f164116a3f660735fedd667925c40e3056.tar.gz
genkernel-d53692f164116a3f660735fedd667925c40e3056.tar.bz2
genkernel-d53692f164116a3f660735fedd667925c40e3056.zip
Fix kernel line argument handling.
Fix kernel line argument handling since it's using old deprecated function.
Diffstat (limited to 'defaults')
-rw-r--r--defaults/linuxrc34
1 files changed, 17 insertions, 17 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc
index aaf27ada..8620352b 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 ]