mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-29 14:31:46 +01:00
run_sdk_container: Workaround for write-protected /etc/hosts bind-mount
The baselayout package wants to manage the /etc/hosts file and thus fails to emerge in the SDK container. One would have to build a new SDK container instead. To unblock the LTS 3033.3.1 release we can add a workaround to make the SDK container environment more similar to how cork worked by removing the /etc/hosts bind mount. This action has to be added to run_sdk_container instead of sdk_lib/sdk_entry.sh because the existing SDK's copy of sdk_lib/sdk_entry.sh won't have the change.
This commit is contained in:
parent
a60ab28eaf
commit
677343ca2e
@ -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 "$@"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user