Use host cache before tmpfs cache
This commit is contained in:
@@ -40,7 +40,7 @@ test_ares() {
|
|||||||
# At worst, the cache directory will be ignored if it does not exist
|
# At worst, the cache directory will be ignored if it does not exist
|
||||||
# Pacman will always prefer the first cache directory, so newly downloaded
|
# Pacman will always prefer the first cache directory, so newly downloaded
|
||||||
# packages will stay in the container
|
# packages will stay in the container
|
||||||
sed -i '"'"'s/^#\?\(CacheDir.*\)/\1\nCacheDir = \/var\/cache\/pacman\/pkg_host\//'"'"' /etc/pacman.conf
|
sed -i '"'"'s/^#\?\(CacheDir.*\)/CacheDir = \/var\/cache\/pacman\/pkg_host\/\n\1/'"'"' /etc/pacman.conf
|
||||||
|
|
||||||
mkdir -p /var/cache/pacman/pkg_host/
|
mkdir -p /var/cache/pacman/pkg_host/
|
||||||
pacman -Syu --noconfirm linux
|
pacman -Syu --noconfirm linux
|
||||||
|
|||||||
Reference in New Issue
Block a user