Skip to content

Commit

Permalink
board/common: allow network configuration
Browse files Browse the repository at this point in the history
Keep S40network start script and remove interfaces config instead.
This to allow users to add their own interface configuration, e.g,
DHCP client, provided the container has the proper capabilities.

Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Sep 12, 2024
1 parent c923703 commit eb119e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion board/common/post-build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/sh
tagline="curiOS -- a slim curated container OS"

for start in S02sysctl S20seedrng S40network S51sysrepo-plugind S52netopeer2; do
for start in S02sysctl S20seedrng S51sysrepo-plugind S52netopeer2; do
rm -f "${TARGET_DIR}/etc/init.d/$start"
done

# We allow S40network but the user must provide the configuration
# because by default container runtimes manage all networking.
rm "${TARGET_DIR}/etc/network/interfaces"

if [ -z "$GIT_VERSION" ]; then
GIT_VERSION=$(git -C "$BR2_EXTERNAL_CURIOS_PATH" describe --always --dirty --tags)
fi
Expand Down

0 comments on commit eb119e3

Please sign in to comment.