Add default /etc/hosts during occlum init

This commit is contained in:
He Sun 2020-09-16 15:24:32 +08:00 committed by Tate, Hongliang Tian
parent 7b882bd368
commit 44583e15be

@ -112,6 +112,9 @@ cmd_init() {
mkdir -p image/root mkdir -p image/root
mkdir -p image/host mkdir -p image/host
mkdir -p image/tmp 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 local occlum_gcc_lib=/usr/local/occlum/x86_64-linux-musl/lib
cp -t image/lib/ \ cp -t image/lib/ \