From 573cb37be36887b9ce71122fddda8951d13fa8d7 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Tue, 15 Feb 2022 22:43:39 +0100 Subject: [PATCH] use archive repo to the date of iso generation --- init | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/init b/init index e425837..eb852d7 100755 --- a/init +++ b/init @@ -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