mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-04 03:51:48 +02:00
If our sdk has an /etc/mtab file already, then clobber it. This fixes build problems where chromeos-base now installs /etc/mtab for us, but the sdk build isn't expecting it leading to the error: INFO cros_sdk:make_chroot: Running init_setup()... ln: creating symbolic link `/b/cbuild/new-sdk-chroot/etc/mtab': File exists Running ['/b/cbuild/src/scripts/sdk_lib/make_chroot.sh', '--stage3_path', '/b/cbuild/built-sdk.tar.xz', '--chroot', '/b/cbuild/new-sdk-chroot', '--cache_dir', '/b/cbuild/.cache', '--nousepkg'] failed! BUG=None TEST=`cros_sdk --chroot foo` still works Change-Id: I539cf329e93e28534e6ff00577ce415d76918b85 Reviewed-on: https://gerrit.chromium.org/gerrit/43641 Reviewed-by: David James <davidjames@chromium.org> Commit-Queue: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>