mcreboot-smp-x86.sh: add extra_kopts param

This lets one specify arbitrary kernel parameters, instead of manually
fiddling with the script.
Could ultimately replace params like -t (turbo) and -d (dump_level) that
do not have any side effect (logmode starts a userland daemon)
This commit is contained in:
Dominique Martinet
2017-09-13 13:19:01 +09:00
parent c3dfb1663d
commit 3bf77446cc

View File

@ -45,7 +45,7 @@ turbo=""
ihk_irq=""
umask_old=`umask`
while getopts :tk:c:m:o:f:r:q:i:d: OPT
while getopts :tk:c:m:o:f:r:q:i:d:e: OPT
do
case ${OPT} in
f) facility=${OPTARG}
@ -64,6 +64,8 @@ do
;;
t) turbo="turbo"
;;
e) extra_kopts=${OPTARG}
;;
d) DUMP_LEVEL=${OPTARG}
;;
i) mon_interval=${OPTARG}
@ -385,7 +387,7 @@ if ! ${SBINDIR}/ihkosctl 0 load ${KERNDIR}/mckernel.img; then
fi
# Set kernel arguments
if ! ${SBINDIR}/ihkosctl 0 kargs "hidos $turbo dump_level=${DUMP_LEVEL}"; then
if ! ${SBINDIR}/ihkosctl 0 kargs "hidos $turbo dump_level=${DUMP_LEVEL} $extra_kopts"; then
echo "error: setting kernel arguments" >&2
error_exit "os_created"
fi