uwu

hardware bitcoin wallet software and build system
git clone https://git.parazyd.org/uwu
Log | Files | Refs | README | LICENSE

commit 20f5c25de4f0a25247a1a34178e84f50d1c533ca
parent 5c6fa086145b95bb5801c51fc3a6805e946f8e11
Author: parazyd <parazyd@dyne.org>
Date:   Sat, 21 Nov 2020 01:48:09 +0100

Add script for chroot setup.

Diffstat:
Ainstall-chroot.sh.in | 43+++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+), 0 deletions(-)

diff --git a/install-chroot.sh.in b/install-chroot.sh.in @@ -0,0 +1,43 @@ +#!/bin/sh +# Copyright (c) 2020 Ivan J. <parazyd@dyne.org> +# This file is part of uwu. +# See LICENSE file for copyright and license details. +set -e + +cat <<EOF > /etc/apk/repositories +https://nl.alpinelinux.org/alpine/edge/main +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 + +apk update +apk upgrade +apk add rng-tools electrum openrc alpine-base + +echo "uwu" > /etc/hostname + +adduser -D -s /bin/ash uwu +echo "@USERCREDENTIALS@" | chpasswd +echo "@ROOTCREDENTIALS@" | chpasswd + +sed -e 's/#rc_parallel="NO"/rc_parallel="YES"/' -i /etc/rc.conf + +cat <<EOF >> /etc/inittab +ttyGS0::respawn:/sbin/getty -L ttyGS0 115200 vt100 +EOF + +echo "ttyGS0" >> /etc/securetty + +boot_initscripts="rngd syslog urandom klogd hostname" +for i in $boot_initscripts; do + rc-update add $i boot +done + +#default_initscripts="electrum-daemon" +#for i in $default_initscripts; do +# rc-update add $i default +#done