Changeset 2534

Show
Ignore:
Timestamp:
04/27/07 10:40:23 (2 years ago)
Author:
hollow
Message:

fix distdir handling if prefix is not

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/distrib/gentoo/initpre

    r2523 r2534  
    2828if test $? -eq 0; then 
    2929        _PORTDIR=$(portageq portdir) 
     30        _DISTDIR=$(portageq distdir) 
    3031else 
    3132        _PORTDIR=/usr/portage 
     33        _DISTDIR=/usr/portage/distfiles 
    3234fi 
    3335 
     
    3537        ( echo 
    3638          echo "# shared portage tree" 
    37           echo "${_PORTDIR}           /usr/portage           none bind,ro 0 0" 
    38           echo "${_PORTDIR}/distfiles /usr/portage/distfiles none bind,rw 0 0" 
     39          echo "${_PORTDIR} /usr/portage           none bind,ro 0 0" 
    3940        ) >> "$1"/fstab 
    4041else 
     
    4344fi 
    4445 
     46if test -d $_DISTDIR; then 
     47        echo "${_DISTDIR} /usr/portage/distfiles none bind,rw 0 0" >> "$1"/fstab 
     48else 
     49        echo "!!! Cannot find distfiles directory! You should definitely use a" 
     50        echo "!!! shared distfiles directory if you have multiple Gentoo guests!" 
     51fi 
    4552 
    4653# prevent dmesg errors/warnings