Merge branch 'master' of ssh://gitlab.manjaro.org:22277/tools/development-tools/manjaro-tools

This commit is contained in:
Philip Müller 2020-05-09 13:21:39 +02:00
commit 65c1322551
6 changed files with 54 additions and 30 deletions

View file

@ -242,6 +242,7 @@ Usage: buildiso [options]
[default: linux49]
-l Create permalink
-m Set SquashFS image mode to persistence
-o Enable office installer
-p <profile> Buildset or profile [default: default]
-q Query settings and pretend build
-r <dir> Chroots directory

View file

@ -29,6 +29,7 @@ show_profile(){
[[ ${target_arch} == 'x86_64' ]] && msg2 "multilib: %s" "${multilib}"
msg2 "extra: %s" "${extra}"
msg2 "office_installer: %s" "${office_installer}"
msg2 "permalink: %s" "${permalink}"
msg2 "netinstall: %s" "${netinstall}"
@ -63,7 +64,7 @@ display_settings(){
show_config
msg "PROFILE:"
msg2 "gitlab brach: %s" "${branch}"
msg2 "gitlab branch: %s" "${branch}"
msg2 "build_lists: %s" "$(show_build_lists ${list_dir_iso})"
msg2 "build_list_iso: %s" "${build_list_iso}"
msg2 "is_build_list: %s" "${is_build_list}"
@ -81,6 +82,7 @@ display_settings(){
msg2 "persist: %s" "${persist}"
msg2 "extra: %s" "${full_iso}"
msg2 "permalink: %s" "${permalink}"
msg2 "office_installer: %s" "${office_installer}"
msg "DIST SETTINGS:"
msg2 "dist_name: %s" "${dist_name}"
@ -128,6 +130,7 @@ usage() {
echo ' -l Create permalink'
echo ' -m Set SquashFS image mode to persistence'
echo " -p <profile> Buildset or profile [default: ${build_list_iso}]"
echo ' -o Enable office installer module'
echo ' -q Query settings and pretend build'
echo ' -r <dir> Chroots directory'
echo " [default: ${chroots_iso}]"
@ -145,7 +148,7 @@ usage() {
orig_argv=("$@")
opts='p:a:b:r:t:k:g:d:cfzxmvqhil'
opts='p:a:b:r:t:k:g:d:cfzxmvqhilo'
while getopts "${opts}" arg; do
case "${arg}" in
@ -166,6 +169,7 @@ while getopts "${opts}" arg; do
x) images_only=true ;;
z) iso_only=true ;;
l) permalink=true ;;
o) office_installer=true ;;
h|?) usage 0 ;;
*) echo "invalid argument '${arg}'"; usage 1 ;;
esac

View file

@ -10,6 +10,10 @@ Branch = stable
## 2) random - randomly generate the output mirrorlist
# Method = rank
## Filename to use when ranking mirrors
## The file must be present in core repo
# TestFile = core.db.tar.gz
## Define protocols and priority
## separated by comma 'https,http' or 'http,https'
## ATM available protocols are: http, https, ftp

View file

@ -8,6 +8,9 @@
# use extra packages as defined in pkglist to activate a full profile
# extra="false"
# use office installer module
# office_installer="false"
################ install ################
# default displaymanager: none

View file

@ -294,15 +294,15 @@ write_settings_conf(){
else
echo " - users" >> "$conf" && write_users_conf
fi
# WIP - OfficeChooser
if ${extra}; then
if ${oem_used}; then
if ${oem_used} || ! ${office_installer}; then
msg2 "Skipping enabling PackageChooser module."
else
msg2 "Enabling PackageChooser module."
echo " - packagechooser" >> "$conf"
fi
fi
if ${netinstall}; then
echo " - netinstall" >> "$conf" && write_netinstall_conf
fi

View file

@ -460,6 +460,8 @@ load_profile_config(){
basic='true'
[[ ${extra} == 'true' ]] && basic='false'
[[ -z ${office_installer} ]] && office_installer="false"
return 0
}
@ -506,6 +508,7 @@ reset_profile(){
unset geoip
unset extra
unset full_iso
unset office_installer
}
check_profile(){
@ -622,6 +625,13 @@ load_pkgs(){
;;
esac
local _office _office_rm
if ${office_installer}; then
_office="s|>office||g"
else
_office_rm="s|>office.*||g"
fi
local _blacklist="s|>blacklist.*||g" \
_kernel="s|KERNEL|$kernel|g" \
_used_kernel=${kernel:5:2} \
@ -649,6 +659,8 @@ load_pkgs(){
| sed "$_basic_rm" \
| sed "$_extra" \
| sed "$_extra_rm" \
| sed "$_office" \
| sed "$_office_rm" \
| sed "$_clean")
if [[ $1 == "${packages_mhwd}" ]]; then