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:


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,

Reply via email to