Use xmirror to change repo mirror during chroot

This commit is contained in:
Le0xFF 2023-08-04 12:34:10 +02:00
parent 2d6aee3af7
commit b094fdc0c1
2 changed files with 31 additions and 13 deletions

View File

@ -1158,13 +1158,17 @@ function chroot_main {
echo
echo -e -n "\n4) Install additional packages"
echo -e -n "\n5) Uninstall packages"
echo -e -n "\n6) Enable/disable services"
echo -e -n "\n4) Change repository mirror"
echo -e -n "\n5) Install additional packages"
echo -e -n "\n6) Uninstall packages"
echo -e -n "\n7) Configure Void Packages"
echo
echo -e -n "\n8) Enable/disable services"
echo
echo -e -n "\nq) ${RED_LIGHT}Finish last steps and quit chroot.${NORMAL}\n"
echo -e -n "\nUser selection: "
@ -1188,17 +1192,17 @@ function chroot_main {
;;
4)
clear
xs
xmirror
clear
;;
5)
clear
uninstall_packages
xs
clear
;;
6)
clear
enable_disable_services
uninstall_packages
clear
;;
7)
@ -1206,6 +1210,11 @@ function chroot_main {
void_packages
clear
;;
8)
clear
enable_disable_services
clear
;;
q)
clear
finish_chroot

23
vli.sh
View File

@ -1282,13 +1282,17 @@ function chroot_main {
echo
echo -e -n "\n4) Install additional packages"
echo -e -n "\n5) Uninstall packages"
echo -e -n "\n6) Enable/disable services"
echo -e -n "\n4) Change repository mirror"
echo -e -n "\n5) Install additional packages"
echo -e -n "\n6) Uninstall packages"
echo -e -n "\n7) Configure Void Packages"
echo
echo -e -n "\n8) Enable/disable services"
echo
echo -e -n "\nq) ${RED_LIGHT}Finish last steps and quit chroot.${NORMAL}\n"
echo -e -n "\nUser selection: "
@ -1312,17 +1316,17 @@ function chroot_main {
;;
4)
clear
xs
xmirror
clear
;;
5)
clear
uninstall_packages
xs
clear
;;
6)
clear
enable_disable_services
uninstall_packages
clear
;;
7)
@ -1330,6 +1334,11 @@ function chroot_main {
void_packages
clear
;;
8)
clear
enable_disable_services
clear
;;
q)
clear
finish_chroot
@ -2928,7 +2937,7 @@ function format_create_install_system {
fi
if ! XBPS_ARCH="$ARCH" xbps-install -Suvy -r /mnt -R "$REPO" base-system btrfs-progs cryptsetup grub-x86_64-efi \
efibootmgr lvm2 grub-btrfs grub-btrfs-runit NetworkManager bash-completion nano gcc apparmor git curl \
util-linux tar coreutils binutils xtools fzf plocate ictree xkeyboard-config ckbcomp void-repo-nonfree; then
util-linux tar coreutils binutils xtools fzf xmirror plocate ictree xkeyboard-config ckbcomp void-repo-nonfree; then
echo -e -n "\n${RED_LIGHT}Something went wrong, killing script...${NORMAL}\n\n"
kill_script
fi