forked from mirrored-repos/manjaro-tools
[mkchroot/chroot-run] add keep_mirrors to help
This commit is contained in:
parent
ad11aefb7c
commit
b07f59fd5f
2 changed files with 4 additions and 2 deletions
|
@ -31,6 +31,7 @@ usage() {
|
|||
echo ' -w <list> Bind mountargs rw'
|
||||
echo ' List format [src1:target1,...,srcN:targetN]'
|
||||
echo ' -B Use custom build mirror'
|
||||
echo ' -K Keep mirrorlist (-B)'
|
||||
echo ' -h This message'
|
||||
exit 1
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@ usage() {
|
|||
echo ' -c <dir> Set pacman cache'
|
||||
echo ' -L Use build locale.gen en/de'
|
||||
echo ' -B Use custom build mirror'
|
||||
echo ' -K Keep mirrorlist (-B)'
|
||||
echo ' -h This message'
|
||||
exit 1
|
||||
}
|
||||
|
@ -43,7 +44,7 @@ while getopts ${opts} arg; do
|
|||
c) cache_dir="$OPTARG" ;;
|
||||
L) build_locales=true ;;
|
||||
B) build_mirror="$OPTARG" ;;
|
||||
K) keep_mirrors=true; mirrors_flag='-R' ;;
|
||||
K) keep_mirrors=true ;;
|
||||
h|?) usage ;;
|
||||
*) error "invalid argument '$arg'"; usage ;;
|
||||
esac
|
||||
|
@ -114,6 +115,6 @@ exec chroot-run \
|
|||
${mirrors_conf:+-S "$mirrors_conf"} \
|
||||
${build_mirror:+-B "$build_mirror"} \
|
||||
${cache_dir:+-c "$cache_dir"} \
|
||||
${mirrors_flag} \
|
||||
${keep_mirrors:+-K} \
|
||||
"$working_dir" locale-gen
|
||||
|
||||
|
|
Loading…
Reference in a new issue