X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=distrib%2Fgentoo%2Finitpost;fp=distrib%2Fgentoo%2Finitpost;h=66e0f2061944a87c1c7cb8683d951542ed07a8a8;hb=b7524644f70b0b0c4fba7f11b7e9ad3fb1c783da;hp=0000000000000000000000000000000000000000;hpb=bbbe3e3bfaf6a3ca8ab3e43b6cbeae66de75cfcf;p=util-vserver.git diff --git a/distrib/gentoo/initpost b/distrib/gentoo/initpost new file mode 100755 index 0000000..66e0f20 --- /dev/null +++ b/distrib/gentoo/initpost @@ -0,0 +1,28 @@ +#! /bin/bash + +# Copyright (C) 2005 Enrico Scholz +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +## Called as: initpost + +. "$2" + +$_MKDIR -p "$1"/vdir/usr/portage + +$_CAT <> "$1"/fstab +# shared portage tree +/usr/portage /usr/portage none bind,ro 0 0 +/usr/portage/distfiles /usr/portage/distfiles none bind,rw 0 0 +EOF