Permalink
Browse files

pacstrap: copy the mirrorlist from the host to the new root

This would overwrite an existing mirrorlist, but the one at the host
is known to be good at this point, so the loss is minimal.

Signed-off-by: Tom Gundersen <teg@jklm.no>
  • Loading branch information...
1 parent c5c20fd commit e032c0305e8a1ca1d15959eac9d9ff3923759c94 @teg committed with falconindy Jun 19, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 pacstrap.in
View
3 pacstrap.in
@@ -81,4 +81,7 @@ if [[ -d /etc/pacman.d/gnupg && ! -d $newroot/etc/pacman.d/gnupg ]]; then
cp -a /etc/pacman.d/gnupg "$newroot/etc/pacman.d/"
fi
+# install the host's mirrorlist onto the new root
+cp -a /etc/pacman.d/mirrorlist "$newroot/etc/pacman.d/"
+
# vim: et ts=2 sw=2 ft=sh:

0 comments on commit e032c03

Please sign in to comment.