mirror of
https://github.com/eoli3n/archiso-zfs.git
synced 2026-03-20 10:04:36 +01:00
try with archzfs archive as repo
This commit is contained in:
parent
d8f1f7afc8
commit
5e9e1b1699
15
init
15
init
|
|
@ -13,24 +13,15 @@ print "Testing if archiso is running"
|
|||
|
||||
grep archiso /proc/cmdline
|
||||
|
||||
print "Setting mirrorlist to current archiso date"
|
||||
|
||||
# Temp fix as https://archive.archlinux.org/repos/2020/05/01/ is empty because of a bug
|
||||
if [[ $1 =~ ^[0-9]{4}/[0-9]{2}/[0-9]{2}$ ]]
|
||||
then
|
||||
iso_date=$1
|
||||
else
|
||||
iso_date=$(date +%Y/%m/%d -d "$(LANG=C pacman -Qi linux |sed -n 's/^Install Date\s*: //p')")
|
||||
fi
|
||||
echo "Server=https://archive.archlinux.org/repos/$iso_date/\$repo/os/\$arch" > /etc/pacman.d/mirrorlist
|
||||
|
||||
print "Adding archzfs repo"
|
||||
print "Adding archzfs repo and archives"
|
||||
|
||||
cat >> /etc/pacman.conf <<"EOF"
|
||||
[archzfs]
|
||||
Server = http://archzfs.com/archzfs/x86_64
|
||||
Server = http://mirror.sum7.eu/archlinux/archzfs/archzfs/x86_64
|
||||
Server = https://mirror.biocrafting.net/archlinux/archzfs/archzfs/x86_64
|
||||
[archzfs_archives]
|
||||
Server = http://archzfs.com/archive_archzfs
|
||||
EOF
|
||||
|
||||
print "Fetching archzfs signing keys"
|
||||
|
|
|
|||
Loading…
Reference in a new issue