forked from mirrored-repos/manjaro-tools
[buildiso] add a verbose option
This commit is contained in:
parent
f57504dd0b
commit
87e46dfb97
1 changed files with 34 additions and 29 deletions
|
@ -23,6 +23,7 @@ SYSCONFDIR='@sysconfdir@'
|
||||||
show_profile(){
|
show_profile(){
|
||||||
cd $1
|
cd $1
|
||||||
load_profile "$1"
|
load_profile "$1"
|
||||||
|
if ${verbose};then
|
||||||
msg2 "work_dir: ${work_dir}"
|
msg2 "work_dir: ${work_dir}"
|
||||||
msg2 "iso_file: ${iso_file}"
|
msg2 "iso_file: ${iso_file}"
|
||||||
msg2 "is_custom_pac_conf: ${is_custom_pac_conf}"
|
msg2 "is_custom_pac_conf: ${is_custom_pac_conf}"
|
||||||
|
@ -47,6 +48,7 @@ show_profile(){
|
||||||
msg2 "start_openrc: ${start_openrc[*]}"
|
msg2 "start_openrc: ${start_openrc[*]}"
|
||||||
msg2 "start_openrc_live: ${start_openrc_live[*]}"
|
msg2 "start_openrc_live: ${start_openrc_live[*]}"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -127,6 +129,9 @@ clean_cache_lng=false
|
||||||
pretend=false
|
pretend=false
|
||||||
images_only=false
|
images_only=false
|
||||||
iso_only=false
|
iso_only=false
|
||||||
|
verbose=true
|
||||||
|
|
||||||
|
verbose_args=''
|
||||||
|
|
||||||
pacman_conf_arch='default'
|
pacman_conf_arch='default'
|
||||||
|
|
||||||
|
@ -143,6 +148,7 @@ usage() {
|
||||||
echo ' -i Build images only'
|
echo ' -i Build images only'
|
||||||
echo ' -s Generate iso only'
|
echo ' -s Generate iso only'
|
||||||
echo ' Requires pre built images (-i)'
|
echo ' Requires pre built images (-i)'
|
||||||
|
echo ' -v Disable verbose output'
|
||||||
echo ' -q Query settings and pretend build'
|
echo ' -q Query settings and pretend build'
|
||||||
echo ' -h This help'
|
echo ' -h This help'
|
||||||
echo ''
|
echo ''
|
||||||
|
@ -152,7 +158,7 @@ usage() {
|
||||||
|
|
||||||
orig_argv=("$@")
|
orig_argv=("$@")
|
||||||
|
|
||||||
opts='p:a:b:r:cxlisqh'
|
opts='p:a:b:r:cxlisvqh'
|
||||||
|
|
||||||
while getopts "${opts}" arg; do
|
while getopts "${opts}" arg; do
|
||||||
case "${arg}" in
|
case "${arg}" in
|
||||||
|
@ -166,6 +172,7 @@ while getopts "${opts}" arg; do
|
||||||
l) clean_cache_lng=true ;;
|
l) clean_cache_lng=true ;;
|
||||||
i) images_only=true ;;
|
i) images_only=true ;;
|
||||||
s) iso_only=true ;;
|
s) iso_only=true ;;
|
||||||
|
v) verbose=false; verbose_args='&> /dev/null' ;;
|
||||||
q) pretend=true ;;
|
q) pretend=true ;;
|
||||||
h|?) usage 0 ;;
|
h|?) usage 0 ;;
|
||||||
*) echo "invalid argument '${arg}'"; usage 1 ;;
|
*) echo "invalid argument '${arg}'"; usage 1 ;;
|
||||||
|
@ -188,8 +195,6 @@ mirrors_conf="${PKGDATADIR}/pacman-mirrors-${branch}.conf"
|
||||||
|
|
||||||
check_root "$0" "${orig_argv[@]}"
|
check_root "$0" "${orig_argv[@]}"
|
||||||
|
|
||||||
#check_run_dir
|
|
||||||
|
|
||||||
eval_buildset "${buildset_iso}" "${sets_dir_iso}"
|
eval_buildset "${buildset_iso}" "${sets_dir_iso}"
|
||||||
|
|
||||||
prepare_cachedirs
|
prepare_cachedirs
|
||||||
|
|
Loading…
Reference in a new issue