summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-13 19:46:51 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-13 19:46:51 -0300
commitcdd0885e645b3fe3d7e281c8c4a012c66d53d570 (patch)
treebeacf2f885780a17c34dc4b7b3c88c985904725e
parent710cb14c6248d26565ff6a5a31a7fc4f76d276e9 (diff)
Allow installation after the first passfauno/newroot
-rwxr-xr-xnewroot21
1 files changed, 17 insertions, 4 deletions
diff --git a/newroot b/newroot
index acf84c6..64f0704 100755
--- a/newroot
+++ b/newroot
@@ -35,19 +35,32 @@ PACCACHE="${PACCACHE:-/var/cache/pacman/pkg}"
export WORKDIR LOGFILE PACCACHE
-function pacman() {
+pacman() {
/usr/bin/pacman -r "${WORKDIR}" \
--dbpath "${WORKDIR}"/var/lib/pacman \
--logfile "${LOGFILE}" \
--noconfirm \
- --needed \
--cachedir "${PACCACHE}" \
--config /etc/pacman.conf $@
}
+#trap_exit() {
+# for _k in dev proc sys; do
+# umount "${WORKDIR}"/$_k
+# done
+#}
+
+#for _t in EXIT INT TERM HUP QUIT ERR; do
+# trap trap_exit $_t
+#done
+
# Bootstrap!
-mkdir -p "${WORKDIR}"/var/lib/pacman
+mkdir -p "${WORKDIR}"/{var/lib/pacman,dev,proc,sys}
+
+#for _k in dev proc sys; do
+# mount --bind /$_k "${WORKDIR}"/$_k
+#done
# We need to do this twice or the install won't find the databases
pacman -Sy
-pacman -S base $@
+pacman -S $@