crouton
crouton copied to clipboard
Detect whether we are running in containers and act responsively.
Detect whether we are running in containers by inspecting the environment variable $container. If we are in container, we are not able to remount or change the config in /proc/sys/*, so just skip them. We also have to patch debootstrap since we are not able to mknod and we don't want to start services in containers.
vboot_is_safe
is also noisy, because of mount --bind / "$tmp"