arch-create-system: update local pacman mirror

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>

mirror

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-01-31 19:23:48 +01:00
parent d9136e52d8
commit f8322b5d62

View File

@@ -595,6 +595,12 @@ install_target_packages () {
printf "${BLUE}Install target packages ${GREEN}'%s' -> '%s'${NO_COLOR}\n" \
"$LABEL" "$MOUNT_POINT"
# Find fast mirror
# TODO: Aachen
sed '1 i\
Server = http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch' \
/etc/pacman.d/mirrorlist
# Update available packages
cmd="pacman -Sy"
if [ $dryrun -eq 1 ]; then
@@ -622,7 +628,7 @@ install_target_packages () {
fi
# SSH-Daemon, FileManager and Editor
cmd="pacstrap $MOUNT_POINT dropbear vim mc bash-completion n"
cmd="pacstrap $MOUNT_POINT dropbear vim mc bash-completion"
if [ $dryrun -eq 1 ]; then
printf "${MAGENTA}Would run ${GREEN}'%s'${NO_COLOR}\n" "$cmd"
else