coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chroot add option to mount /dev /proc /sys for you?


From: Bernhard Voelker
Subject: Re: chroot add option to mount /dev /proc /sys for you?
Date: Tue, 17 Apr 2018 08:23:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 04/15/2018 12:46 AM, Marc Weber wrote:
> chrooting has always been a mess for me because in order for software to
> work you need to bind mount /dev /proc /sys usually.
> Then when something crashes your you quit chroot -> a mess again.
> 
> So why not add a chroot --bind-mount-defaults options which keeps track of
> how many chroots are running and makes the last exiting process clean up?
> 
> Then chrooting would be easier going.
> 
> Would thus option make sense ?

This was already discussed at:

  https://lists.gnu.org/r/coreutils/2017-09/msg00013.html

This is too system-specific to be added to chroot(1) which is
merely a wrapper around the chroot system call.

Have a nice day,
Berny




reply via email to

[Prev in Thread] Current Thread [Next in Thread]