diff options
-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 $@ |