diff options
Diffstat (limited to 'newroot')
-rwxr-xr-x | newroot | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -36,14 +36,18 @@ PACCACHE="${PACCACHE:-/var/cache/pacman/pkg}" export WORKDIR LOGFILE PACCACHE function pacman() { - pacman -r "${WORKDIR}" \ - --logfile "${LOGFILE}" \ - --noconfirm \ - --cachedir "${PACCACHE}" \ - --config /etc/pacman.conf $@ + /usr/bin/pacman -r "${WORKDIR}" \ + --dbpath "${WORKDIR}"/var/lib/pacman \ + --logfile "${LOGFILE}" \ + --noconfirm \ + --needed \ + --cachedir "${PACCACHE}" \ + --config /etc/pacman.conf $@ } # Bootstrap! mkdir -p "${WORKDIR}"/var/lib/pacman -pacman -Sy base ${@} +# We need to do this twice or the install won't find the databases +pacman -Sy +pacman -S base $@ |