Embellishments for module dependencies and initramfs bootup sequence

- add recursive module dependencies based on porper tools (modinfo)
  - fix zinit boot sequences
    - /dev/shm mount for alpine-built haveged
    - mycelium
    - rfs copy fixes
    - better sequencing overall (god I miss 'before:'
This commit is contained in:
2025-08-20 09:35:18 +02:00
parent 4a24580b05
commit 56c3813609
10 changed files with 368 additions and 131 deletions

3
configs/zinit/init/shm.sh Normal file → Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
mkdir /dev/shm
mount -t tmpfs shm /dev/shm

2
configs/zinit/lo.yaml Normal file
View File

@@ -0,0 +1,2 @@
exec: ip l set lo up
oneshot: true

View File

@@ -1,4 +1,4 @@
exec: ip netns exec public /usr/bin/mycelium --key-file /tmp/mycelium_priv_key.bin
exec: /usr/bin/mycelium --key-file /tmp/mycelium_priv_key.bin
--tun-name my0 --silent --peers tcp://188.40.132.242:9651 tcp://136.243.47.186:9651
tcp://185.69.166.7:9651 tcp://185.69.166.8:9651 tcp://65.21.231.58:9651 tcp://65.109.18.113:9651
tcp://209.159.146.190:9651 tcp://5.78.122.16:9651 tcp://5.223.43.251:9651 tcp://142.93.217.194:9651

View File

@@ -1,3 +1,3 @@
exec: sh /etc/zinit/init/ntpd.sh
after:
- internet
- network

View File

@@ -1 +1,2 @@
exec: /etc/zinit/shm.sh
exec: /etc/zinit/init/shm.sh
oneshot: true