#!/bin/bash # # Assumptions: # 1) User has partitioned, formatted, and mounted partitions on /mnt # 2) Network is functional # 3) Arguments passed to the script are valid pacman targets # 4) A valid mirror appears in /etc/pacman.d/mirrorlist # version=@version@ shopt -s extglob [[ -r @libdir@/util-msg.sh ]] && source @libdir@/util-msg.sh [[ -r @libdir@/util-mount.sh ]] && source @libdir@/util-mount.sh newroot=/mnt hostcache=0 copykeyring=1 copymirrorlist=1 usage() { cat <