diff --git a/build/boot/hosts.sh b/build/boot/hosts.sh deleted file mode 100644 index dc293ad..0000000 --- a/build/boot/hosts.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -set -e -# echo "127.0.0.1 localhost" >> /tmp/hosts -cp /etc/hosts /tmp -echo "$HOST_ADDR host" >> /tmp/hosts diff --git a/build/make/base.mk b/build/make/base.mk index 5cf52d2..5eb998a 100644 --- a/build/make/base.mk +++ b/build/make/base.mk @@ -1,4 +1,4 @@ -base: cron syslog sshd hosts +base: cron syslog sshd $(call script,utilities) $(call script,init) $(call script,runit) diff --git a/build/make/hosts.mk b/build/make/hosts.mk deleted file mode 100644 index 2d5f2c1..0000000 --- a/build/make/hosts.mk +++ /dev/null @@ -1,3 +0,0 @@ -hosts: - $(call script,$@) - $(call boot,01,$@) \ No newline at end of file diff --git a/build/scripts/hosts.sh b/build/scripts/hosts.sh deleted file mode 100644 index 91f9ce4..0000000 --- a/build/scripts/hosts.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -set -e -source /build/config -set -x - -## Hosts file hack -export_env LD_LIBRARY_PATH /root/lib -mkdir -p $LD_LIBRARY_PATH -cp /lib/x86_64-linux-gnu/libnss_files.so.2 $LD_LIBRARY_PATH -sed -i 's,/etc/hosts,/tmp/hosts,' $LD_LIBRARY_PATH/libnss_files.so.2 - -## Other commands -# ENV LD_LIBRARY_PATH /root/lib -# RUN mkdir $LD_LIBRARY_PATH -# RUN cp /lib/x86_64-linux-gnu/libnss_files.so.2 $LD_LIBRARY_PATH -# RUN perl -pi -e 's:/etc/hosts:/tmp/hosts:g' $LD_LIBRARY_PATH/libnss_files.so.2 - -## Environment variable -echo -n $LD_LIBRARY_PATH > /etc/container_environment/LD_LIBRARY_PATH \ No newline at end of file