From 25a1cb19b213f7825fcc080a29991beeb70f6b93 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 16 Apr 2018 00:51:48 -0400 Subject: It works! A getty now spawns on the serial console on boot Todo: DNS resolution doesn't work yet. DHCP for eth0? SSH server? `tmux`? ------- Added busybox config Switched the pathing around yet again in the `inc` file Added `local` files to be copied into the prefix before creating the tarball ( TODO ) Added tree command to the build Install runit --- local/etc/runit/1 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 local/etc/runit/1 (limited to 'local/etc/runit/1') diff --git a/local/etc/runit/1 b/local/etc/runit/1 new file mode 100755 index 0000000..671b689 --- /dev/null +++ b/local/etc/runit/1 @@ -0,0 +1,27 @@ +#!/bin/sh + +. /etc/profile + +printf "Starting *MIN*imum system\n" + +mkdir -p /dev +mountpoint -q /dev || mount -t devtmpfs dev /dev -o mode=0755,nosuid +mkdir -p /dev/pts +mountpoint -q /dev/pts || mount -n -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec,noatime + +mkdir -p /proc /sys +mountpoint -q /proc || mount -t proc proc /proc -o nosuid,noexec,nodev,hidepid=2 +mountpoint -q /sys || mount -t sysfs sys /sys -o nosuid,noexec,nodev + +mkdir -p /dev/shm +mountpoint -q /dev/shm || mount -n -t tmpfs shm /dev/shm -o mode=1777,nosuid,nodev,noatime + +# It's going to be interesting to figure out what this one does. +ln -s /proc/self/fd /dev/fd + +mountpoint -q /sys/fs/cgroup || mount -n -t cgroup nodev /sys/fs/cgroup + +printf "Setting up loopback.\n" +[ -d /sys/class/net/lo ] && ifconfig lo up + + -- cgit v1.2.3