Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604136 - Make user.eclass EROOT aware
Summary: Make user.eclass EROOT aware
Status: RESOLVED DUPLICATE of bug 541406
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-30 13:12 UTC by Another Mortal
Modified: 2016-12-30 13:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Another Mortal 2016-12-30 13:12:27 UTC
I'm having a bit of an issue when running emerge with --root,
as users I don't want or need get created on my build host,
but they are missing from the new 'root' system being built.

My guess is that wrapping each command with something like this:

eroot_wrapper() {
    if [[ -z ${EROOT} ]]; then "$@"; else chroot ${EROOT} "$@"; fi
}

might work...
Comment 1 Coacher 2016-12-30 13:22:05 UTC

*** This bug has been marked as a duplicate of bug 541406 ***