You no longer need to write the kernel list directly in build.sh.
t) sfs_comp_opt=${OPTARG} ;;
b) boot_splash=true ;;
k)
- case ${OPTARG} in
- "lts") kernel="lts" ;;
- "lqx") kernel="lqx" ;;
- "zen") kernel="zen" ;;
- "ck") kernel="ck" ;;
- "rt") kernel="rt" ;;
- "rt-lts") kernel="rt-lts" ;;
- *)
- echo "Invalid kernel ${OPTARG}" >&2
- _usage 1
- ;;
- esac
+ if [[ -n $(cat ./kernel_list | grep -x "${OPTARG}") ]]; then
+ kernel="${OPTARG}"
+ else
+ echo "Invalid kernel ${OPTARG}" >&2
+ _usage 1
+ fi
;;
x) debug=true;;
h) _usage 0 ;;
echo "The compression method of squashfs is ${sfs_comp}."
sleep 2
-
+exit
run_once make_pacman_conf
run_once make_basefs
run_once make_packages
--- /dev/null
+lts
+lqx
+zen
+ck
+rt
+rt-lts
\ No newline at end of file