From b795a5acfa6719dac0e1ff9d75d48ad4cbdc6ca9 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 22 Sep 2021 21:36:29 +0200 Subject: [PATCH] add pkg dir to var --- usr/bin/archboot-create-container.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/bin/archboot-create-container.sh b/usr/bin/archboot-create-container.sh index ebdc2a365..13e1efe7b 100755 --- a/usr/bin/archboot-create-container.sh +++ b/usr/bin/archboot-create-container.sh @@ -34,6 +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/ cp /var/cache/pacman/pkg/linux-"$(systemd-nspawn -D archboot-release 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