add pkg dir to var

This commit is contained in:
Tobias Powalowski 2021-09-22 21:46:13 +02:00
parent 7480efbefb
commit 114d724698

View file

@ -34,7 +34,7 @@ systemd-nspawn -D $1 /bin/bash -c "echo 'Server = https://mirror.rackspace.com/a
systemd-nspawn -D $1 /bin/bash -c "sed -i -e 's:^CheckSpace:#CheckSpace:g' /etc/pacman.conf"
# enable parallel downloads
systemd-nspawn -D $1 /bin/bash -c "sed -i -e 's:^#ParallelDownloads:ParallelDownloads:g' /etc/pacman.conf"
mkdir $1/var/cache/pacman/pkg/
mkdir -p $1/var/cache/pacman/pkg/
cp /var/cache/pacman/pkg/linux-"$(systemd-nspawn -D $1 pacman -Qi linux | grep Version | cut -d ":" -f2)"* $1/var/cache/pacman/pkg/
# reinstall kernel to get files in /boot
systemd-nspawn -D $1 pacman -Sy linux --noconfirm