From 44583e15bec58e0747c21bfa3556023ee8c7d6a2 Mon Sep 17 00:00:00 2001 From: He Sun Date: Wed, 16 Sep 2020 15:24:32 +0800 Subject: [PATCH] Add default /etc/hosts during occlum init --- tools/occlum | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/occlum b/tools/occlum index 5ea9dccc..b7b0fd31 100755 --- a/tools/occlum +++ b/tools/occlum @@ -112,6 +112,9 @@ cmd_init() { mkdir -p image/root mkdir -p image/host mkdir -p image/tmp + # add default /etc/hosts + mkdir -p image/etc + echo "127.0.0.1 localhost" > image/etc/hosts local occlum_gcc_lib=/usr/local/occlum/x86_64-linux-musl/lib cp -t image/lib/ \