summaryrefslogtreecommitdiff
path: root/newroot
diff options
context:
space:
mode:
Diffstat (limited to 'newroot')
-rwxr-xr-xnewroot16
1 files changed, 10 insertions, 6 deletions
diff --git a/newroot b/newroot
index dff1003..acf84c6 100755
--- a/newroot
+++ b/newroot
@@ -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 $@