From c6aad535f1d7c68e81284c1f4df17f33d90e65fd Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 23 Sep 2021 07:07:57 +0200 Subject: [PATCH] add pkg dir to var --- usr/bin/archboot-create-container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/archboot-create-container.sh b/usr/bin/archboot-create-container.sh index 0832a0487..6262a8c5a 100755 --- a/usr/bin/archboot-create-container.sh +++ b/usr/bin/archboot-create-container.sh @@ -35,6 +35,6 @@ systemd-nspawn -D $1 /bin/bash -c "sed -i -e 's:^CheckSpace:#CheckSpace:g' /etc/ # enable parallel downloads systemd-nspawn -D $1 /bin/bash -c "sed -i -e 's:^#ParallelDownloads:ParallelDownloads:g' /etc/pacman.conf" 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 | cut -d "-" -f1)"* $1/var/cache/pacman/pkg/ +cp /var/cache/pacman/pkg/linux-"$(echo $(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