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
b69e7bf1
Commit
b69e7bf1
authored
Jul 31, 2014
by
rabisg
Committed by
Stéphane Graber
Aug 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use portageq to determine portage distdir
Signed-off-by:
Rabi Shanker Guha
<
guha.rabishankar@gmail.com
>
Acked-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
91c5c53f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
lxc-gentoo.in
templates/lxc-gentoo.in
+7
-1
No files found.
templates/lxc-gentoo.in
View file @
b69e7bf1
...
@@ -442,12 +442,18 @@ container_portage()
...
@@ -442,12 +442,18 @@ container_portage()
fi
fi
fi
fi
printf
"trying to guess portage distfiles dir from host ...
\n
"
portage_distfiles_dir
=
"
$(
portageq distdir 2>/dev/null
)
"
if
[
!
-d
"
${
portage_distfiles_dir
}
"
]
;
then
portage_distfiles_dir
=
"
${
portage_dir
}
/distfiles"
fi
# if we are here, we have shared portage_dir
# if we are here, we have shared portage_dir
#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_di
r
}
/distfiles
${
portage_container
/\//
}
/distfiles none rw,bind 0 0
lxc.mount.entry=
${
portage_di
stfiles_dir
}
${
portage_container
/\//
}
/distfiles none rw,bind 0 0
#If you use eix, you should uncomment this
#If you use eix, you should uncomment this
#lxc.mount.entry=/var/cache/eix var/cache/eix none ro,bind 0 0"
#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
/\//
}
"
...
...
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