enter_chroot: bind mount /dev recursively

If nodes under /dev are bind mounted themselves (e.g. how /dev is set
up under Crostini containers), then bind mounting just /dev won't work
to pass through the full /dev state.

This means we might pull in more references into the chroot namespace
than we were before, but it's not clear if that is a problem.  We can
try it and see if anyone notices.

BUG=None
TEST=`cros_sdk` in Crostini works now

Change-Id: Ic48e50213f3425f98a95f22864d436852197b171
Reviewed-on: https://chromium-review.googlesource.com/1529147
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
1 file changed