summaryrefslogtreecommitdiff
path: root/osi-mk
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-12 18:25:10 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-12 18:25:10 -0400
commit6ad087c117383b4c9d7088ce39f3d7327aea6828 (patch)
tree55da9b57cf104dad9cc521dedbb65db9795ec081 /osi-mk
parent73b5d49c810e215419404ae49c1cba110c52c47c (diff)
os-mk: comments
Diffstat (limited to 'osi-mk')
-rwxr-xr-xosi-mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/osi-mk b/osi-mk
index d756948..8da37f3 100755
--- a/osi-mk
+++ b/osi-mk
@@ -194,11 +194,13 @@ main() {
#### install ###
printf -v prefix "$(gettext -- '%s [install]')" "$NAME"
{
+ # Pre-fill the package cache
if (( ${#cache_packages[@]} > 0 )); then
- # Pre-fill the package cache
mkdir -p -- "$arg_mountpoint"/var/{cache/pacman/pkg,lib/pacman,log}
+ # Download anything the host doesn't already have cached
pacman -r "$arg_mountpoint" --config=/usr/share/pacman/defaults/pacman.conf.x86_64 \
-Syw --noconfirm -- "${cache_packages[@]}"
+ # Copy needed packages from host cache to image cache
pacman -r "$arg_mountpoint" --config=/usr/share/pacman/defaults/pacman.conf.x86_64 \
-Sp --print-format='%l' -- "${cache_packages[@]}" \
| sed -n 's,^file://,,p' \