From 114d72469852e0054bf8208c28db907674e1e20a Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 22 Sep 2021 21:46:13 +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 3b7f74639..d3c499379 100755 --- a/usr/bin/archboot-create-container.sh +++ b/usr/bin/archboot-create-container.sh @@ -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