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

2018-04-25 Thread Bob Proulx
Marc Weber wrote: > So the question would turn into would it make sense to create a new tool > which (optionally cleans up) like this: > > with-mounts sys,proc,dev -- chroot ... > > There might be many use cases. > > I think there is interest. But I'm unsure where would be the place to > put

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

2018-04-17 Thread Marc Weber
Hi Bernhard Voelker, Thinking about it again you might be right. So the question would turn into would it make sense to create a new tool which (optionally cleans up) like this: with-mounts sys,proc,dev -- chroot ... There might be many use cases. I think there is interest. But I'm unsure

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

2018-04-17 Thread Assaf Gordon
Hello Marc, On 17/04/18 12:23 AM, Bernhard Voelker wrote: 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.

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

2018-04-17 Thread Bernhard Voelker
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

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

2018-04-14 Thread Marc Weber
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