Changeset 236 for quickinst/quickinst


Ignore:
Timestamp:
04.12.2008 23:13:41 (20 months ago)
Author:
henning
Message:

quickinst:
avoid link loop on existing pacman cache in new root
not only use stated mirror at pacman bootstrap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quickinst/quickinst

    r195 r236  
    7979        mkdir -p $(dirname $cache) 
    8080        mkdir -p $target/var/lib/pacman 
    81         ln -s /var/cache/pacman/pkg $cache 
     81        [ ! -d $cache ] && 
     82                ln -s /var/cache/pacman/pkg $cache 
    8283} || { 
    8384        mkdir -p $cache 
     
    122123        cp /etc/resolv.conf etc/resolv.conf 
    123124 
     125        echo -e "[core]\nServer = $source" > /tmp/pacman.conf 
     126 
    124127        mkdir sys proc dev 2> /dev/null 
    125128 
    126129        [ $on_arch ] && { 
    127                 pacman --noconfirm -r $target -Sfy base $addpkgs || exit 1 
     130                pacman --noconfirm --config /tmp/pacman.conf \ 
     131                        -r $target -Sfy base $addpkgs || exit 1 
    128132        } || { 
    129133                mount -o bind /dev dev 
     
    132136 
    133137                chroot $target /bin/bash <<EOF 
    134                         pacman --noconfirm -Sfy base $addpkgs || exit 1 
     138                        pacman --noconfirm --config /tmp/pacman.conf \ 
     139                                -Sfy base $addpkgs || exit 1 
    135140EOF 
    136141        } 
Note: See TracChangeset for help on using the changeset viewer.