Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 270793 Details for
Bug 362495
the passwd and group files in /mnt/gentoo/etc will be overwritten
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
using this configuration, password and group files will not be overwritten.
finaloption.txt (text/plain), 1.10 KB, created by
syedarmani
on 2011-04-21 18:14:53 UTC
(
hide
)
Description:
using this configuration, password and group files will not be overwritten.
Filename:
MIME Type:
Creator:
syedarmani
Created:
2011-04-21 18:14:53 UTC
Size:
1.10 KB
patch
obsolete
>use schroot with the following configuration: >/etc/schroot/schroot.conf (on host system; <host> is your username on the host) >[gent00] >description=gentoo >type=directory >directory=/mnt/gentoo >priority=3 >users=<host> >groups=<host>,portage >root-users=<host> >root-groups=root,<host>,portage >aliases=gentoo >adding portage user and group on host system: >sudo useradd -M -g portage -s /bin/false -u 250 portage >which adds the following lines to /mnt/gentoo/etc/passwd >portage:x:250:250::/home/portage:/bin/false >and to /mnt/gentoo/etc/group: >portage:x:250:<host> >the schroot command for emerge --sync: >schroot -c gent00 -- emerge --sync >if you get an rsync error like "mkstemp failed .... permission denied", do from inside the chroot: >chown -R 250 usr/portage >for classic chrooting: >sudo mount --bind /dev /mnt/gentoo/dev >sudo mount --bind /dev/pts /mnt/gentoo/dev/pts >sudo mount --bind /proc /mnt/gentoo/proc >sudo mount --bind /sys /mnt/gentoo/sys >sudo cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf #(not sure if this does anything; /etc/resolv.conf is blank except for a comment) >sudo chroot /mnt/gentoo
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 362495
: 270793