Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 604136

Summary: Make user.eclass EROOT aware
Product: Gentoo Linux Reporter: Another Mortal <a.m>
Component: EclassesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 ***