add pkg dir to var

This commit is contained in:
Tobias Powalowski 2021-09-22 21:42:17 +02:00
parent b795a5acfa
commit 7480efbefb

View file

@ -35,6 +35,6 @@ systemd-nspawn -D $1 /bin/bash -c "sed -i -e 's:^CheckSpace:#CheckSpace:g' /etc/
# enable parallel downloads # enable parallel downloads
systemd-nspawn -D $1 /bin/bash -c "sed -i -e 's:^#ParallelDownloads:ParallelDownloads:g' /etc/pacman.conf" systemd-nspawn -D $1 /bin/bash -c "sed -i -e 's:^#ParallelDownloads:ParallelDownloads:g' /etc/pacman.conf"
mkdir $1/var/cache/pacman/pkg/ mkdir $1/var/cache/pacman/pkg/
cp /var/cache/pacman/pkg/linux-"$(systemd-nspawn -D archboot-release pacman -Qi linux | grep Version | cut -d ":" -f2)"* $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 # reinstall kernel to get files in /boot
systemd-nspawn -D $1 pacman -Sy linux --noconfirm systemd-nspawn -D $1 pacman -Sy linux --noconfirm