This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
adlin/login.yml

113 lines
4.2 KiB
YAML

init:
- busybox
- nemunaire/adlin-login-app:c71f57c845cd1e26df4a95143c86c98699bf7b6c
files:
- path: /etc/ssl/certs/DST_Root_CA_X3.pem
source: /etc/ssl/certs/DST_Root_CA_X3.pem
mode: "0644"
# find pkg/challenge/lib/modules/5.4.13-adlin/ -type f | while read l; do cat <<EOF; done
# - path: ${l##pkg/challenge}
# source: ${l}
# mode: "0644"
# EOF
- path: /lib/modules/5.4.13-adlin/modules.alias.bin
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.alias.bin
mode: "0644"
- path: /lib/modules/5.4.13-adlin/kernel/drivers/net/mii.ko
source: pkg/challenge/lib/modules/5.4.13-adlin/kernel/drivers/net/mii.ko
mode: "0644"
- path: /lib/modules/5.4.13-adlin/kernel/drivers/net/ethernet/realtek/8139cp.ko
source: pkg/challenge/lib/modules/5.4.13-adlin/kernel/drivers/net/ethernet/realtek/8139cp.ko
mode: "0644"
- path: /lib/modules/5.4.13-adlin/kernel/drivers/net/ethernet/realtek/r8169.ko
source: pkg/challenge/lib/modules/5.4.13-adlin/kernel/drivers/net/ethernet/realtek/r8169.ko
mode: "0644"
- path: /lib/modules/5.4.13-adlin/kernel/drivers/net/ethernet/intel/e1000/e1000.ko
source: pkg/challenge/lib/modules/5.4.13-adlin/kernel/drivers/net/ethernet/intel/e1000/e1000.ko
mode: "0644"
- path: /lib/modules/5.4.13-adlin/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
source: pkg/challenge/lib/modules/5.4.13-adlin/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
mode: "0644"
- path: /lib/modules/5.4.13-adlin/kernel/drivers/net/ethernet/intel/e100.ko
source: pkg/challenge/lib/modules/5.4.13-adlin/kernel/drivers/net/ethernet/intel/e100.ko
mode: "0644"
- path: /lib/modules/5.4.13-adlin/kernel/drivers/net/phy/realtek.ko
source: pkg/challenge/lib/modules/5.4.13-adlin/kernel/drivers/net/phy/realtek.ko
mode: "0644"
- path: /lib/modules/5.4.13-adlin/modules.alias
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.alias
mode: "0644"
- path: /lib/modules/5.4.13-adlin/modules.builtin
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.builtin
mode: "0644"
- path: /lib/modules/5.4.13-adlin/modules.builtin.bin
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.builtin.bin
mode: "0644"
- path: /lib/modules/5.4.13-adlin/modules.softdep
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.softdep
mode: "0644"
- path: /lib/modules/5.4.13-adlin/modules.order
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.order
mode: "0644"
- path: /lib/modules/5.4.13-adlin/modules.dep.bin
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.dep.bin
mode: "0644"
- path: /lib/modules/5.4.13-adlin/modules.symbols
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.symbols
mode: "0644"
- path: /lib/modules/5.4.13-adlin/modules.devname
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.devname
mode: "0644"
- path: /lib/modules/5.4.13-adlin/modules.symbols.bin
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.symbols.bin
mode: "0644"
- path: /lib/modules/5.4.13-adlin/modules.dep
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.dep
mode: "0644"
- path: /lib/modules/5.4.13-adlin/modules.builtin.modinfo
source: pkg/challenge/lib/modules/5.4.13-adlin/modules.builtin.modinfo
mode: "0644"
- path: /init
contents: |
#!/bin/sh
/bin/mount -t proc proc /proc
/bin/mount -t sysfs sysfs /sys
echo 0 > /proc/sys/kernel/printk
mknod /dev/null c 1 3
mknod /dev/tty c 5 0
mdev -s
exec setsid sh -c 'exec sh /init2 </dev/tty1 >/dev/tty1 2>&1'
mode: "0755"
- path: /init2
contents: |
#!/bin/sh
for mod in e100 e1000 e1000e 8139cp r8169 virtio-net; do
modprobe "${mod}"
done
{
ip link set eth0 up && sleep 4 && udhcpc
ip route add 172.23.200.0/24 via 172.23.255.1
echo "nameserver 172.23.200.2" > /etc/resolv.conf
} > /dev/null 2> /dev/null &
grep adlin.debug=1 /proc/cmdline > /dev/null && /bin/sh
/bin/login-app
reboot -f
mode: "0755"
- path: /etc/resolv.conf
contents: |
domain adlin.nemunai.re
nameserver 172.23.200.2
mode: "0644"