mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
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:
commit
6b29a89efd
@ -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 "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user