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
59b1be485d
6 changed files with 11 additions and 17 deletions
|
@ -88,9 +88,6 @@ overriding
|
||||||
|
|
||||||
################ buildiso ################
|
################ buildiso ################
|
||||||
|
|
||||||
# the name of the profiles directory
|
|
||||||
# profile_repo='manjaro-tools-iso-profiles'
|
|
||||||
|
|
||||||
# default iso build list; name without .list extension
|
# default iso build list; name without .list extension
|
||||||
# build_list_iso=default
|
# build_list_iso=default
|
||||||
|
|
||||||
|
|
|
@ -239,9 +239,10 @@ EOF
|
||||||
# so no global variables
|
# so no global variables
|
||||||
_chrootbuild() {
|
_chrootbuild() {
|
||||||
. /etc/profile
|
. /etc/profile
|
||||||
export HOME=/build
|
# export HOME=/build
|
||||||
cd /startdir
|
# cd /startdir
|
||||||
sudo -u builduser makepkg "$@"
|
# sudo -u builduser makepkg "$@"
|
||||||
|
sudo -iu builduser bash -c 'cd /startdir; makepkg "$@"' -bash "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
_chrootnamcap() {
|
_chrootnamcap() {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
xfce-minimal
|
xfce
|
||||||
|
|
|
@ -37,9 +37,6 @@
|
||||||
|
|
||||||
################ buildiso ################
|
################ buildiso ################
|
||||||
|
|
||||||
# the name of the profiles directory
|
|
||||||
# profile_repo='iso-profiles'
|
|
||||||
|
|
||||||
# default iso build list; name without .list extension
|
# default iso build list; name without .list extension
|
||||||
# build_list_iso=default
|
# build_list_iso=default
|
||||||
|
|
||||||
|
|
|
@ -241,12 +241,11 @@ write_postcfg_conf(){
|
||||||
get_yaml(){
|
get_yaml(){
|
||||||
local args=() yaml
|
local args=() yaml
|
||||||
if ${chrootcfg};then
|
if ${chrootcfg};then
|
||||||
args+=('chrootcfg')
|
args+=("${profile}/chrootcfg")
|
||||||
else
|
else
|
||||||
args+=("packages")
|
args+=("${profile}/packages")
|
||||||
fi
|
fi
|
||||||
args+=("${initsys}")
|
args+=("${initsys}")
|
||||||
[[ ${edition} == 'sonar' ]] && args+=("${edition}")
|
|
||||||
for arg in ${args[@]};do
|
for arg in ${args[@]};do
|
||||||
yaml=${yaml:-}${yaml:+-}${arg}
|
yaml=${yaml:-}${yaml:+-}${arg}
|
||||||
done
|
done
|
||||||
|
@ -400,7 +399,7 @@ write_pacman_group_yaml(){
|
||||||
|
|
||||||
prepare_check(){
|
prepare_check(){
|
||||||
profile=$1
|
profile=$1
|
||||||
edition=$(get_edition ${profile})
|
local edition=$(get_edition ${profile})
|
||||||
profile_dir=${run_dir}/${edition}/${profile}
|
profile_dir=${run_dir}/${edition}/${profile}
|
||||||
check_profile
|
check_profile
|
||||||
load_profile_config "${profile_dir}/profile.conf"
|
load_profile_config "${profile_dir}/profile.conf"
|
||||||
|
|
|
@ -295,6 +295,8 @@ init_buildiso(){
|
||||||
|
|
||||||
cache_dir_iso="${cache_dir}/iso"
|
cache_dir_iso="${cache_dir}/iso"
|
||||||
|
|
||||||
|
profile_repo='iso-profiles'
|
||||||
|
|
||||||
##### iso settings #####
|
##### iso settings #####
|
||||||
|
|
||||||
[[ -z ${dist_release} ]] && dist_release=$(get_release)
|
[[ -z ${dist_release} ]] && dist_release=$(get_release)
|
||||||
|
@ -315,8 +317,6 @@ init_buildiso(){
|
||||||
|
|
||||||
[[ -z ${use_overlayfs} ]] && use_overlayfs='true'
|
[[ -z ${use_overlayfs} ]] && use_overlayfs='true'
|
||||||
|
|
||||||
[[ -z ${profile_repo} ]] && profile_repo='iso-profiles'
|
|
||||||
|
|
||||||
[[ -z ${gpgkey} ]] && gpgkey=''
|
[[ -z ${gpgkey} ]] && gpgkey=''
|
||||||
|
|
||||||
mhwd_repo="/opt/pkg"
|
mhwd_repo="/opt/pkg"
|
||||||
|
@ -708,7 +708,7 @@ write_repo_conf(){
|
||||||
local path name
|
local path name
|
||||||
[[ -z ${repos[@]} ]] && run_dir=${DATADIR}/iso-profiles && return 1
|
[[ -z ${repos[@]} ]] && run_dir=${DATADIR}/iso-profiles && return 1
|
||||||
for r in ${repos[@]}; do
|
for r in ${repos[@]}; do
|
||||||
path=${r%/.*}
|
path=${r%/repo_info}
|
||||||
name=${path##*/}
|
name=${path##*/}
|
||||||
echo "run_dir=$path" > ${USERCONFDIR}/$name.conf
|
echo "run_dir=$path" > ${USERCONFDIR}/$name.conf
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue