Changeset 2534
- Timestamp:
- 04/27/07 10:40:23 (2 years ago)
- Files:
-
- trunk/distrib/gentoo/initpre (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/distrib/gentoo/initpre
r2523 r2534 28 28 if test $? -eq 0; then 29 29 _PORTDIR=$(portageq portdir) 30 _DISTDIR=$(portageq distdir) 30 31 else 31 32 _PORTDIR=/usr/portage 33 _DISTDIR=/usr/portage/distfiles 32 34 fi 33 35 … … 35 37 ( echo 36 38 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" 39 40 ) >> "$1"/fstab 40 41 else … … 43 44 fi 44 45 46 if test -d $_DISTDIR; then 47 echo "${_DISTDIR} /usr/portage/distfiles none bind,rw 0 0" >> "$1"/fstab 48 else 49 echo "!!! Cannot find distfiles directory! You should definitely use a" 50 echo "!!! shared distfiles directory if you have multiple Gentoo guests!" 51 fi 45 52 46 53 # prevent dmesg errors/warnings
