tWrite /etc/hosts and remove resolv.conf when done with Internet access in chroot. - uwu - hardware bitcoin wallet software and build system (HTM) git clone https://git.parazyd.org/uwu (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 8f0090be0359ebbf3f96d7f1d1fa28b256342d47 (DIR) parent 4cb21c9961c4b1ead73ade2e9c0c932e6f96c0bf (HTM) Author: parazyd <parazyd@dyne.org> Date: Sat, 21 Nov 2020 16:09:30 +0100 Write /etc/hosts and remove resolv.conf when done with Internet access in chroot. Diffstat: M install-chroot.sh.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- (DIR) diff --git a/install-chroot.sh.in b/install-chroot.sh.in t@@ -10,15 +10,16 @@ https://nl.alpinelinux.org/alpine/edge/community https://nl.alpinelinux.org/alpine/edge/testing EOF -cat <<EOF > /etc/resolv.conf -nameserver 8.8.8.8 -EOF +echo "nameserver 8.8.8.8" > /etc/resolv.conf apk update apk upgrade apk add rng-tools electrum openrc alpine-base +rm -f /etc/resolv.conf + echo "uwu" > /etc/hostname +echo "127.0.0.1 localhost uwu" > /etc/hosts adduser -D -s /bin/ash uwu echo "@USERCREDENTIALS@" | chpasswd