Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36226 - Changed group ownerhip of "host" /dev files when using chroot to install
Summary: Changed group ownerhip of "host" /dev files when using chroot to install
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-21 03:47 UTC by Johannes Niess
Modified: 2004-03-11 07:05 UTC (History)
1 user (show)

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 Johannes Niess 2003-12-21 03:47:46 UTC
I followed the install guide from stage 1 using a Debian Woody as host for the chroot. Group ownership of some /dev files (e.g. audio related) in Woody was set to the group id's from Gentoo's /etc/group.



Reproducible: Always
Steps to Reproduce:

Actual Results:  
I lost sound output in Woody because of "permission denied". I had to "chown"
back by hand.

Expected Results:  
Leave "host" /dev alone.

This could be solved by moving the relevant part to a very late stage.
Preferably when we are sure that "/dev/" is gentoo's dev. Maybe do it on the
first boot.
Comment 1 SpanKY gentoo-dev 2003-12-22 22:07:54 UTC
uhh, what did you do in order to achieve this ?

changing permissions inside of a chroot shouldnt affect the host system ...
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2003-12-22 23:57:27 UTC
I believe that is due to the bind-mounting of /dev to /mnt/gentoo/dev. If you don't bind-mount the /dev to /mnt/gentoo/dev, you somethimes get "/dev/null: permission denied" or "/dev/null: device or resource not found" as we have seen on the Knoppix installations.

I don't know how to solve this... I don't like fuzzy information like "Some installation media require you to bind-mount /dev, others don't".
Comment 3 Peter Mayer 2004-02-26 17:46:01 UTC
This is a real problem it also occured on my system. After an step1 install I was not any longer able to use a console as user or play a sound. A good solution would be to make sure that no script changes permissions of /dev until the first run of gentoo. I really hate it that my clean /dev system is now compromissed.
Comment 4 John Davis (zhen) (RETIRED) gentoo-dev 2004-03-05 11:44:06 UTC
did you bind mount your /dev? If so, there is really no reason to do so. 
Comment 5 John Davis (zhen) (RETIRED) gentoo-dev 2004-03-11 07:05:59 UTC
closing since there has been no response and it seems that the bug was caused by an improper bind-mount.