68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.82
|
|
cmdline: "console=tty0 console=ttyS0 quiet panic=-1"
|
|
|
|
init:
|
|
- busybox
|
|
|
|
files:
|
|
- path: /bin/login
|
|
source: login-app/login-app
|
|
mode: "0755"
|
|
|
|
- path: /etc/terminfo/l/linux
|
|
source: /etc/terminfo/l/linux
|
|
mode: "0644"
|
|
- path: /etc/ssl/certs/DST_Root_CA_X3.pem
|
|
source: /etc/ssl/certs/DST_Root_CA_X3.pem
|
|
mode: "0644"
|
|
- path: /usr/share/consolefonts/Inconsolata-16b.psf.gz
|
|
source: fonts/Inconsolata-16b.psf.gz
|
|
mode: "0644"
|
|
- path: /usr/share/udhcpc/default.script
|
|
source: /usr/share/udhcpc/default.script
|
|
mode: "0755"
|
|
|
|
- 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
|
|
|
|
zcat /usr/share/consolefonts/Inconsolata-16b.psf.gz | loadfont
|
|
|
|
for mod in e100 e1000 e1000e 8139cp 8139too r8169 virtio-net; do
|
|
modprobe "${mod}"
|
|
done
|
|
|
|
{
|
|
ip link set eth0 up && 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 &
|
|
|
|
/bin/sh
|
|
/bin/login
|
|
|
|
reboot -f
|
|
mode: "0755"
|
|
- path: /etc/resolv.conf
|
|
contents: |
|
|
domain adlin.nemunai.re
|
|
nameserver 172.23.200.2
|
|
mode: "0644"
|