@@ -151,6 +151,7 @@ _usage () {
151151 echo " --nopkgbuild Ignore PKGBUILD (Use only for debugging)"
152152 echo " --tar-type <comp_type> Set compression type (gzip, lzma, lzo, xz, zstd)"
153153 echo " --tar-opts <option> Set tar command argument (Use with --tarball)"
154+ echo " --add-module <module> Load additional modules (Separated by \" ,\" )"
154155 echo
155156 echo " Many packages are installed from AUR, so specifying --noaur can cause problems."
156157 echo
@@ -407,6 +408,9 @@ prepare_build() {
407408 # Load configs
408409 load_config " ${channel_dir} /config.any" " ${channel_dir} /config.${arch} "
409410
411+ # Additional modules
412+ modules+=(" ${additional_modules[@]} " )
413+
410414 # Legacy mode
411415 if [[ " $( bash " ${tools_dir} /channel.sh" --version " ${alteriso_version} " ver " ${channel_name} " ) " = " 3.0" ]]; then
412416 msg_warn " The module cannot be used because it works with Alter ISO3.0 compatibility."
@@ -1056,7 +1060,7 @@ make_iso() {
10561060# Parse options
10571061ARGUMENT=(" ${DEFAULT_ARGUMENT[@]} " " ${@ } " )
10581062OPTS=(" a:" " b" " c:" " d" " e" " g:" " h" " j" " k:" " l:" " o:" " p:" " r" " t:" " u:" " w:" " x" )
1059- OPTL=(" arch:" " boot-splash" " comp-type:" " debug" " cleaning" " cleanup" " gpgkey:" " help" " lang:" " japanese" " kernel:" " out:" " password:" " comp-opts:" " user:" " work:" " bash-debug" " nocolor" " noconfirm" " nodepend" " gitversion" " msgdebug" " noloopmod" " tarball" " noiso" " noaur" " nochkver" " channellist" " config:" " noefi" " nodebug" " nosigcheck" " normwork" " log" " logpath:" " nolog" " nopkgbuild" " pacman-debug" " confirm" " tar-type:" " tar-opts:" )
1063+ OPTL=(" arch:" " boot-splash" " comp-type:" " debug" " cleaning" " cleanup" " gpgkey:" " help" " lang:" " japanese" " kernel:" " out:" " password:" " comp-opts:" " user:" " work:" " bash-debug" " nocolor" " noconfirm" " nodepend" " gitversion" " msgdebug" " noloopmod" " tarball" " noiso" " noaur" " nochkver" " channellist" " config:" " noefi" " nodebug" " nosigcheck" " normwork" " log" " logpath:" " nolog" " nopkgbuild" " pacman-debug" " confirm" " tar-type:" " tar-opts:" " add-module: " )
10601064OPT=" $( getopt -o " $( printf " %s," " ${OPTS[@]} " ) " -l " $( printf " %s," " ${OPTL[@]} " ) " -- " ${ARGUMENT[@]} " ) " || exit 1
10611065
10621066eval set -- " ${OPT} "
@@ -1244,6 +1248,11 @@ while true; do
12441248 IFS=" " read -r -a tar_comp_opt <<< " ${2}"
12451249 shift 2
12461250 ;;
1251+ --add-module)
1252+ readarray -t -O " ${# additional_modules[@]} " additional_modules < <( echo " ${2} " | tr " ," " \n" )
1253+ msg_debug " Added modules: ${additional_modules[*]} "
1254+ shift 2
1255+ ;;
12471256 --)
12481257 shift
12491258 break
0 commit comments