buildiso: add ">extra" tag in pkglists to support full profiles
This commit is contained in:
parent
bf1e534684
commit
84784f2774
4 changed files with 20 additions and 1 deletions
|
@ -34,6 +34,8 @@ show_profile(){
|
||||||
|
|
||||||
[[ ${target_arch} == 'x86_64' ]] && msg2 "multilib: %s" "${multilib}"
|
[[ ${target_arch} == 'x86_64' ]] && msg2 "multilib: %s" "${multilib}"
|
||||||
|
|
||||||
|
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,8 @@ show_profile(){
|
||||||
|
|
||||||
[[ ${target_arch} == 'x86_64' ]] && msg2 "multilib: %s" "${multilib}"
|
[[ ${target_arch} == 'x86_64' ]] && msg2 "multilib: %s" "${multilib}"
|
||||||
|
|
||||||
|
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,9 @@
|
||||||
# use pxe
|
# use pxe
|
||||||
# pxe_boot="true"
|
# pxe_boot="true"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
14
lib/util.sh
14
lib/util.sh
|
@ -400,6 +400,8 @@ load_profile_config(){
|
||||||
|
|
||||||
[[ -z ${pxe_boot} ]] && pxe_boot="true"
|
[[ -z ${pxe_boot} ]] && pxe_boot="true"
|
||||||
|
|
||||||
|
[[ -z ${extra} ]] && extra='false'
|
||||||
|
|
||||||
[[ -z ${plymouth_boot} ]] && plymouth_boot="true"
|
[[ -z ${plymouth_boot} ]] && plymouth_boot="true"
|
||||||
|
|
||||||
[[ -z ${nonfree_mhwd} ]] && nonfree_mhwd="true"
|
[[ -z ${nonfree_mhwd} ]] && nonfree_mhwd="true"
|
||||||
|
@ -498,6 +500,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 +557,14 @@ 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 _extra _extra_rm
|
||||||
|
|
||||||
|
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 +648,8 @@ load_pkgs(){
|
||||||
| sed "$_kernel" \
|
| sed "$_kernel" \
|
||||||
| sed "$_edition" \
|
| sed "$_edition" \
|
||||||
| sed "$_edition_rm" \
|
| sed "$_edition_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