From 7480efbefbdfbbc535403712bc922716d1fbd1a2 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 22 Sep 2021 21:42:17 +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 13e1efe7b..3b7f74639 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 $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 systemd-nspawn -D $1 pacman -Sy linux --noconfirm