Skip to content

Commit

Permalink
fix: make --network option work with rootfs based on Alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
edubart committed Jan 15, 2025
1 parent 9ef0143 commit 4cad755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cartesi-machine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ local function handle_network_option(opts)
busybox ip link set dev eth0 up
busybox ip addr add 10.0.2.15/24 dev eth0
busybox ip route add default via 10.0.2.2 dev eth0
[ -w /etc/resolv.conf ] && echo 'nameserver 10.0.2.3' > /etc/resolv.conf
[ -w /etc ] && echo 'nameserver 10.0.2.3' > /etc/resolv.conf
]]
-- sync guest date with host date, otherwise SSL connections may fail to validate certificates
handle_sync_init_date(true)
Expand Down

0 comments on commit 4cad755

Please sign in to comment.