Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
cf261d58
Commit
cf261d58
authored
Feb 05, 2014
by
gza
Committed by
Stéphane Graber
Feb 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gentoo: fix portage rw problem
Signed-off-by:
Guillaume Zitta
<
github.guillaume@zitta.fr
>
Acked-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
6edbfc86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
lxc-gentoo.in
templates/lxc-gentoo.in
+11
-8
No files found.
templates/lxc-gentoo.in
View file @
cf261d58
...
@@ -430,19 +430,22 @@ container_portage()
...
@@ -430,19 +430,22 @@ container_portage()
#ensure dir exists
#ensure dir exists
chroot
"
${
rootfs
}
"
mkdir
${
portage_container
}
chroot
"
${
rootfs
}
"
mkdir
${
portage_container
}
portage_mount
=
"#container set with shared portage
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
/\//
}
"
store_user_message
"container has a shared portage from host's
${
portage_dir
}
to
${
portage_container
/\//
}
"
#Let's propose binary packages
#Let's propose binary packages
cat
<<-
EOF
>> "
${
rootfs
}
/etc/portage/make.conf"
cat
<<-
EOF
>> "
${
rootfs
}
/etc/portage/make.conf"
# enable this to store built binary packages
# enable this to store built binary packages
#FEATURES="\
$FEATURES
buildpkg"
#FEATURES="\
$FEATURES
buildpkg"
# enable this to use built binary packages
# enable this to use built binary packages
#EMERGE_DEFAULT_OPTS="\
${
EMERGE_DEFAULT_OPTS
}
--usepkg"
#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
# enable and *tune* this kind of entry to slot binaries, specialy if you use multiples archs and variants
#PKGDIR="\
${
PKGDIR
}
/amd64
#PKGDIR="\
${
PKGDIR
}
/amd64
#or PKGDIR="\
${
PKGDIR
}
/hardened"
#or PKGDIR="\
${
PKGDIR
}
/hardened"
EOF
EOF
printf
" => portage stuff done, see /etc/portage/make.conf for additionnal tricks
\n
"
printf
" => portage stuff done, see /etc/portage/make.conf for additionnal tricks
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment