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