Merge pull request #339 from flatcar-linux/kai/umount-hosts

run_sdk_container: Workaround for write-protected /etc/hosts bind-mount
This commit is contained in:
Kai Lüke 2022-06-01 21:58:03 +09:00 committed by GitHub
commit 6b29a89efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,4 +143,7 @@ if [ "$stat" != "Up" ] ; then
$docker start "$name" $docker start "$name"
fi 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 "$@" $docker exec $tty -i "$name" /home/sdk/sdk_entry.sh "$@"