Commit graph

432 commits

Author SHA1 Message Date
Daniel Barlow
3677ab9cb3 move service state out of s6 scandir
getting weird permission errors, seems simpler all raound just to
put them somewhere else
2022-09-25 21:10:04 +01:00
Daniel Barlow
1d9f39bf87 support notification-fd file in longrun 2022-09-25 21:06:08 +01:00
Daniel Barlow
92e42f1d45 fix oneshot "up" and "down" files
they're supposed to be names of executables, not text of
shell scripts
2022-09-25 21:02:10 +01:00
Daniel Barlow
01aa423dad pkgs.writeAshScript is similar to writeShellScript but busybox 2022-09-25 20:50:20 +01:00
Daniel Barlow
3540f594b1 address service: rename addr->address & add prefixLength
these names are consistent with nixos
2022-09-25 16:51:13 +01:00
Daniel Barlow
0e73362a8c expose pkgs in default derivation 2022-09-25 13:18:26 +01:00
Daniel Barlow
0c25983c0b fix kconfig override
the default kconfig should be in a config stanza, not in the
default attr of the options stanza, otherwise it gets overridden
completely instead of merged
2022-09-25 13:17:21 +01:00
Daniel Barlow
c1835d97ee add pppoe 2022-09-25 11:54:31 +01:00
Daniel Barlow
c6e56b1637 merge-modules accepts >1 module 2022-09-25 11:52:02 +01:00
Daniel Barlow
887a4ff966 WIP introduce nixos module system for configuration 2022-09-25 11:10:22 +01:00
Daniel Barlow
0f999f9ae4 smoke test : remove temporary files afterwards 2022-09-24 21:13:15 +01:00
Daniel Barlow
8dd7bb958a improve qemu tooling, and document it 2022-09-24 21:03:26 +01:00
Daniel Barlow
aa589e8d6b two kinds of brain dump 2022-09-24 17:47:14 +01:00
Daniel Barlow
d284179272 script and README to start routeros configured for pppoe 2022-09-24 13:04:47 +01:00
Daniel Barlow
7a4314baee run-tests cd into each test directory before running it 2022-09-23 17:21:43 +01:00
Daniel Barlow
1bc8fd7873 remove trace output 2022-09-22 12:45:41 +01:00
Daniel Barlow
dd124e49dd udhcp: write service responses as outputs 2022-09-22 12:42:20 +01:00
Daniel Barlow
0b0efde12c tidy repo 2022-09-22 11:11:31 +01:00
Daniel Barlow
e46abbccca put liminix-tools in package overlay 2022-09-22 11:10:41 +01:00
Daniel Barlow
4eea1b1f18 delete noodling in readme 2022-09-22 00:11:58 +01:00
Daniel Barlow
fde7a269b7 add default service target, get some stuff running 2022-09-22 00:10:55 +01:00
Daniel Barlow
edb701b87d set PATH for root user, mount /proc and /sys 2022-09-22 00:10:00 +01:00
Daniel Barlow
45025f128a switch to s6-linux-init and s6-rc
This is at the point where it runs a getty and a pile of s6-supervise
processes, though it doesn't seem to run the things being supervised
2022-09-21 23:01:21 +01:00
Daniel Barlow
6be5b90c96 boots to userland and runs busybox init 2022-09-20 23:04:08 +01:00
Daniel Barlow
b2f7a429f7 build a kernel, using malta_kvm_defconfig
(there's a lot in this config that I don't think is needed)
2022-09-20 18:54:27 +01:00
Daniel Barlow
41598a75f0 link to CITL mips security paper 2022-09-20 18:24:27 +01:00
Daniel Barlow
ad759b7c6d allow changing hardware device in tests 2022-09-20 16:09:44 +01:00
Daniel Barlow
e892dc6e9c stop if test fails 2022-09-20 16:07:55 +01:00
Daniel Barlow
fc1020732f placeholder readme 2022-09-20 15:46:42 +01:00
Daniel Barlow
83d576fb58 remove unused lets, add test case 2022-09-20 15:46:03 +01:00
Daniel Barlow
b38b0bd932 add rudimentary test harness, turn example-configuration into a test 2022-09-20 15:22:37 +01:00
Daniel Barlow
4b118bca19 generate a mips squashfs with some s6-rc services
haven't even tried booting it but I don't expect it to work. Needs

- s6-linux-init or some other pid 1 program
- a kernel
2022-09-19 23:51:38 +01:00