#!/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 if [[ -r @libdir@/messages.sh ]];then source @libdir@/messages.sh fi if [[ -r @libdir@/util-mount.sh ]];then source @libdir@/util-mount.sh fi newroot=/mnt hostcache=0 copykeyring=1 copymirrorlist=1 usage() { cat <