On Fri, Apr 12, 2013 at 1:20 PM, Maxim Kammerer <m...@dee.su> wrote:
> On Fri, Apr 12, 2013 at 7:22 PM, Mike Frysinger <vap...@gentoo.org> wrote:
>> i don't know what you mean.  if the ebuild detects devpts being mounted and
>> the mount is incorrect, it will die.  if you don't have devpts mounted at 
>> all,
>> then it assumes you know what you're doing.
>
> What I am saying is that you make no distinction between build
> environment and deployment environment. Quite a few users build their
> Gentoo systems in a chroot. In that case, whole /dev, or its portions
> (including /dev/pts) can be bind-mounts from the host filesystem, and
> /dev/pts does not need to have the correct permissions. However, you
> *would* see such a bind-mount as a devpts mount in /proc/mounts. So
> why not print a warning — what's the point of dying in pkg_preinst?
>

Do you have a reason for not having /dev/pts mounted with gid=5 on the
system hosting the chroot environment?

Calling die is much more likely to save users systems than an ewarn.

Reply via email to