]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
gentoo: fix portage rw problem
authorgza <github.guillaume@zitta.fr>
Tue, 4 Feb 2014 23:11:11 +0000 (00:11 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 5 Feb 2014 18:44:11 +0000 (13:44 -0500)
Signed-off-by: Guillaume Zitta <github.guillaume@zitta.fr>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-gentoo.in

index dff146e10002787b59513932c38f1e03a199537c..ae6789877ec156986c6d56fdf5dc96d91523b40c 100644 (file)
@@ -430,19 +430,22 @@ container_portage()
     #ensure dir exists
     chroot "${rootfs}" mkdir ${portage_container}
         portage_mount="#container set with shared portage
-    lxc.mount.entry=${portage_dir} ${portage_container/\//} none ro,bind 0 0"
+lxc.mount.entry=${portage_dir} ${portage_container/\//} none ro,bind 0 0
+lxc.mount.entry=${portage_dir}/distfiles ${portage_container/\//}/distfiles none rw,bind 0 0
+#If you use eix, you should uncomment this
+#lxc.mount.entry=/var/cache/eix var/cache/eix none ro,bind 0 0"
     store_user_message "container has a shared portage from host's ${portage_dir} to ${portage_container/\//}"
         #Let's propose binary packages
     cat <<- EOF >> "${rootfs}/etc/portage/make.conf"
-    # enable this to store built binary packages
-    #FEATURES="\$FEATURES buildpkg"
+# enable this to store built binary packages
+#FEATURES="\$FEATURES buildpkg"
 
-    # enable this to use built binary packages
-    #EMERGE_DEFAULT_OPTS="\${EMERGE_DEFAULT_OPTS} --usepkg"
+# enable this to use built binary packages
+#EMERGE_DEFAULT_OPTS="\${EMERGE_DEFAULT_OPTS} --usepkg"
 
-    # enable and *tune* this kind of entry to slot binaries, specialy if you use multiples archs and variants
-    #PKGDIR="\${PKGDIR}/amd64
-    #or PKGDIR="\${PKGDIR}/hardened"
+# enable and *tune* this kind of entry to slot binaries, specialy if you use multiples archs and variants
+#PKGDIR="\${PKGDIR}/amd64
+#or PKGDIR="\${PKGDIR}/hardened"
 EOF
     printf " => portage stuff done, see /etc/portage/make.conf for additionnal tricks\n"