Merge pull request #339 from flatcar-linux/scripts

run_sdk_container: Workaround for write-protected /etc/hosts bind-mount
This commit is contained in:
Kai Lueke 2022-06-01 22:00:07 +09:00
commit 085ba23b0e

View File

@ -143,4 +143,7 @@ if [ "$stat" != "Up" ] ; then
$docker start "$name"
fi
# Workaround: The SDK expects to be able to write to /etc/hosts
$docker exec "$name" sh -c 'cp /etc/hosts /etc/hosts2; umount /etc/hosts ; mv /etc/hosts2 /etc/hosts'
$docker exec $tty -i "$name" /home/sdk/sdk_entry.sh "$@"