diff --git a/bin/buildiso.in b/bin/buildiso.in index 7c82d19..185d673 100644 --- a/bin/buildiso.in +++ b/bin/buildiso.in @@ -131,6 +131,7 @@ usage() { echo " [default: ${kernel}]" echo ' -l Create permalink' echo ' -m Set SquashFS image mode to persistence' + echo ' -n Disable multilib' echo " -p Buildset or profile [default: ${build_list_iso}]" echo ' -o Enable office installer module' echo ' -q Query settings and pretend build' @@ -150,7 +151,7 @@ usage() { orig_argv=("$@") -opts='p:a:b:r:t:k:g:d:cfzxmvqhilo' +opts='p:a:b:r:t:k:g:d:cfzxmnvqhilo' while getopts "${opts}" arg; do case "${arg}" in @@ -163,6 +164,7 @@ while getopts "${opts}" arg; do g) gpgkey="$OPTARG" ;; k) kernel="$OPTARG" ;; m) persist=true ;; + n) no_multilib=true ;; # only exist if set here p) build_list_iso="$OPTARG" ;; q) pretend=true ;; r) chroots_iso="$OPTARG" ;; diff --git a/lib/util.sh b/lib/util.sh index 51c3be7..01ebc0e 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -409,6 +409,7 @@ load_profile_config(){ [[ -z ${snap_channel} ]] && snap_channel="stable" [[ -z ${multilib} ]] && multilib="true" + [[ ${no_multilib} == 'true' ]] && multilib="false" [[ -z ${nonfree_mhwd} ]] && nonfree_mhwd="true" @@ -516,6 +517,7 @@ reset_profile(){ unset extra unset full_iso unset office_installer + unset no_multilib } check_profile(){