mirror of
https://github.com/eoli3n/archiso-zfs.git
synced 2026-01-06 08:40:02 +01:00
use archive repo to the date of iso generation
This commit is contained in:
parent
3a233244f2
commit
573cb37be3
9
init
9
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue