Fix "text file busy" error reported when using AUFS storage driver

This commit fixes the following error specific to AUFS:

/dockcross/entrypoint.sh: line 47: /usr/bin/gosu: Text file busy
/dockcross/entrypoint.sh: line 47: /usr/bin/gosu: Success

Thanks @sobolevn
See https://github.com/moby/moby/issues/13594#issuecomment-262441366
This commit is contained in:
Jean-Christophe Fillion-Robin 2017-05-01 16:33:14 -04:00
parent 6e59959a6a
commit dd9d902538
No known key found for this signature in database
GPG Key ID: A50C0312039D473C

View File

@ -41,7 +41,7 @@ if [[ -n $BUILDER_UID ]] && [[ -n $BUILDER_GID ]]; then
# Enable passwordless sudo capabilities for the user
chown root:$BUILDER_GID $(which gosu)
chmod +s $(which gosu)
chmod +s $(which gosu); sync
# Run the command as the specified user/group.
exec gosu $BUILDER_UID:$BUILDER_GID "$@"