use archive repo to the date of iso generation

This commit is contained in:
eoli3n 2022-02-15 22:43:39 +01:00
parent 3a233244f2
commit 573cb37be3

9
init
View file

@ -122,8 +122,12 @@ download_package () {
dkms_init () {
print "Installing linux-headers for current running kernel"
pacman -U "https://archive.org/download/archlinux_pkg_linux-headers/linux-headers-$1-x86_64.pkg.tar.zst" --noconfirm
#print "Installing linux-headers for current running kernel"
#pacman -U "https://archive.org/download/archlinux_pkg_linux-headers/linux-headers-$1-x86_64.pkg.tar.zst" --noconfirm
pacman_cache_date=$(stat -c '%y' /var/cache/pacman/pkg | cut -d' ' -f1 | sed 's:-:/:g')
echo "Server=https://archive.archlinux.org/repos/$pacman_cache_date/\$repo/os/\$arch" > /etc/pacman.d/mirrorlist
pacman -Syyu --noconfirm base-devel
}
@ -185,7 +189,6 @@ else
print "Install zfs-dkms"
# Install package
pacman -S base-devel --noconfirm
pacman -S zfs-dkms --noconfirm && zfs=1
fi