mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-04 12:02:13 +02:00
In an Ubuntu Precise chroot on the Chromebook Pixel, /run/shm is a symbolic link to /dev/shm, so bind-mounting /run/shm to /dev/shm is really bind-mounting /dev/shm to itself, which causes a 'too many levels of symbolic links' error. To fix this, we check for a symbolic link prior to running this command. BUG=none TEST=cros_sdk no longer prints errors on Chromebook Pixel Change-Id: Ib46cde2b4a0e00b69bd187488967e445b228ae80 Reviewed-on: https://gerrit.chromium.org/gerrit/45048 Reviewed-by: Mike Frysinger <vapier@chromium.org> Commit-Queue: David James <davidjames@chromium.org> Tested-by: David James <davidjames@chromium.org>