From cdd0885e645b3fe3d7e281c8c4a012c66d53d570 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Thu, 13 Sep 2012 19:46:51 -0300 Subject: Allow installation after the first pass --- newroot | 21 +++++++++++++++++---- 1 file 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 $@ -- cgit v1.2.3-54-g00ecf