diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-12 18:25:10 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-12 18:25:10 -0400 |
commit | 6ad087c117383b4c9d7088ce39f3d7327aea6828 (patch) | |
tree | 55da9b57cf104dad9cc521dedbb65db9795ec081 /osi-mk | |
parent | 73b5d49c810e215419404ae49c1cba110c52c47c (diff) |
os-mk: comments
Diffstat (limited to 'osi-mk')
-rwxr-xr-x | osi-mk | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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' \ |