diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-09-13 19:46:51 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-09-13 19:46:51 -0300 |
commit | cdd0885e645b3fe3d7e281c8c4a012c66d53d570 (patch) | |
tree | beacf2f885780a17c34dc4b7b3c88c985904725e | |
parent | 710cb14c6248d26565ff6a5a31a7fc4f76d276e9 (diff) |
Allow installation after the first passfauno/newroot
-rwxr-xr-x | newroot | 21 |
1 files changed, 17 insertions, 4 deletions
@@ -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 $@ |