forked from mirrored-repos/manjaro-tools
Merge branch 'master' of github.com:manjaro/manjaro-tools into stable-0.14.x
This commit is contained in:
commit
30a0285e4f
5 changed files with 39 additions and 5 deletions
|
@ -34,6 +34,9 @@ show_profile(){
|
||||||
|
|
||||||
[[ ${target_arch} == 'x86_64' ]] && msg2 "multilib: %s" "${multilib}"
|
[[ ${target_arch} == 'x86_64' ]] && msg2 "multilib: %s" "${multilib}"
|
||||||
|
|
||||||
|
msg2 "basic: %s" "${basic}"
|
||||||
|
msg2 "extra: %s" "${extra}"
|
||||||
|
|
||||||
msg2 "netinstall: %s" "${netinstall}"
|
msg2 "netinstall: %s" "${netinstall}"
|
||||||
msg2 "chrootcfg: %s" "${chrootcfg}"
|
msg2 "chrootcfg: %s" "${chrootcfg}"
|
||||||
${netinstall} && msg2 "netgroups: %s" "$(get_yaml)"
|
${netinstall} && msg2 "netgroups: %s" "$(get_yaml)"
|
||||||
|
|
|
@ -31,6 +31,9 @@ show_profile(){
|
||||||
|
|
||||||
[[ ${target_arch} == 'x86_64' ]] && msg2 "multilib: %s" "${multilib}"
|
[[ ${target_arch} == 'x86_64' ]] && msg2 "multilib: %s" "${multilib}"
|
||||||
|
|
||||||
|
msg2 "basic: %s" "${basic}"
|
||||||
|
msg2 "extra: %s" "${extra}"
|
||||||
|
|
||||||
msg2 "netinstall: %s" "${netinstall}"
|
msg2 "netinstall: %s" "${netinstall}"
|
||||||
msg2 "chrootcfg: %s" "${chrootcfg}"
|
msg2 "chrootcfg: %s" "${chrootcfg}"
|
||||||
${netinstall} && msg2 "netgroups: %s" "$(get_yaml)"
|
${netinstall} && msg2 "netgroups: %s" "$(get_yaml)"
|
||||||
|
|
|
@ -8,6 +8,12 @@
|
||||||
# use pxe
|
# use pxe
|
||||||
# pxe_boot="true"
|
# pxe_boot="true"
|
||||||
|
|
||||||
|
# use core packages as defined in pkglist to use in basic profile
|
||||||
|
# basic="false"
|
||||||
|
|
||||||
|
# use extra packages as defined in pkglist to activate a full profile
|
||||||
|
# extra="false"
|
||||||
|
|
||||||
################ torrent ################
|
################ torrent ################
|
||||||
|
|
||||||
# the torrent tracker urls, comma separated
|
# the torrent tracker urls, comma separated
|
||||||
|
|
|
@ -181,6 +181,7 @@ write_welcome_conf(){
|
||||||
echo "requirements:" >> "$conf"
|
echo "requirements:" >> "$conf"
|
||||||
echo " requiredStorage: 7.9" >> "$conf"
|
echo " requiredStorage: 7.9" >> "$conf"
|
||||||
echo " requiredRam: 1.0" >> "$conf"
|
echo " requiredRam: 1.0" >> "$conf"
|
||||||
|
echo " internetCheckUrl: https://manjaro.org" >> "$conf"
|
||||||
echo " check:" >> "$conf"
|
echo " check:" >> "$conf"
|
||||||
echo " - storage" >> "$conf"
|
echo " - storage" >> "$conf"
|
||||||
echo " - ram" >> "$conf"
|
echo " - ram" >> "$conf"
|
||||||
|
|
31
lib/util.sh
31
lib/util.sh
|
@ -376,10 +376,7 @@ check_profile_vars(){
|
||||||
|
|
||||||
get_svc(){
|
get_svc(){
|
||||||
local service=${displaymanager}
|
local service=${displaymanager}
|
||||||
case $service in
|
${plymouth_boot} && service="$service-plymouth"
|
||||||
'sddm'|'lxdm') service="$service" ;;
|
|
||||||
*) ${plymouth_boot} && service="$service-plymouth" ;;
|
|
||||||
esac
|
|
||||||
echo $service
|
echo $service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -459,6 +456,12 @@ load_profile_config(){
|
||||||
|
|
||||||
[[ -z ${smb_workgroup} ]] && smb_workgroup=''
|
[[ -z ${smb_workgroup} ]] && smb_workgroup=''
|
||||||
|
|
||||||
|
[[ -z ${basic} ]] && basic='true'
|
||||||
|
[[ -z ${extra} ]] && extra='false'
|
||||||
|
|
||||||
|
#${basic} && extra='false'
|
||||||
|
${extra} && basic='false'
|
||||||
|
|
||||||
check_profile_vars
|
check_profile_vars
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
@ -498,6 +501,7 @@ reset_profile(){
|
||||||
unset netgroups
|
unset netgroups
|
||||||
unset geoip
|
unset geoip
|
||||||
unset plymouth_boot
|
unset plymouth_boot
|
||||||
|
unset extra
|
||||||
}
|
}
|
||||||
|
|
||||||
check_profile(){
|
check_profile(){
|
||||||
|
@ -554,7 +558,20 @@ load_pkgs(){
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
local _multi _nonfree_default _nonfree_multi _arch _arch_rm _nonfree_i686 _nonfree_x86_64
|
local _multi _nonfree_default _nonfree_multi _arch _arch_rm _nonfree_i686 _nonfree_x86_64 _basic _basic_rm _extra _extra_rm
|
||||||
|
|
||||||
|
if ${basic};then
|
||||||
|
_basic="s|>basic||g"
|
||||||
|
else
|
||||||
|
_basic_rm="s|>basic.*||g"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ${extra};then
|
||||||
|
_extra="s|>extra||g"
|
||||||
|
else
|
||||||
|
_extra_rm="s|>extra.*||g"
|
||||||
|
fi
|
||||||
|
|
||||||
case "${target_arch}" in
|
case "${target_arch}" in
|
||||||
"i686")
|
"i686")
|
||||||
_arch="s|>i686||g"
|
_arch="s|>i686||g"
|
||||||
|
@ -638,6 +655,10 @@ load_pkgs(){
|
||||||
| sed "$_kernel" \
|
| sed "$_kernel" \
|
||||||
| sed "$_edition" \
|
| sed "$_edition" \
|
||||||
| sed "$_edition_rm" \
|
| sed "$_edition_rm" \
|
||||||
|
| sed "$_basic" \
|
||||||
|
| sed "$_basic_rm" \
|
||||||
|
| sed "$_extra" \
|
||||||
|
| sed "$_extra_rm" \
|
||||||
| sed "$_clean")
|
| sed "$_clean")
|
||||||
|
|
||||||
if [[ $1 == "${packages_mhwd}" ]]; then
|
if [[ $1 == "${packages_mhwd}" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue