33 lines
989 B
YAML
33 lines
989 B
YAML
|
kernel:
|
||
|
image: nemunaire/kernel:4.9.140-4080ab71159a0b09a0b2ce7d87a7cb7fd719e35d-dirty-amd64
|
||
|
cmdline: "console=ttyS0 console=tty0"
|
||
|
|
||
|
|
||
|
init:
|
||
|
- linuxkit/init:c563953a2277eb73a89d89f70e4b6dcdcfebc2d1
|
||
|
- linuxkit/runc:83d0edb4552b1a5df1f0976f05f442829eac38fe
|
||
|
- linuxkit/getty:2eb742cd7a68e14cf50577c02f30147bc406e478
|
||
|
|
||
|
|
||
|
onboot:
|
||
|
- name: mod
|
||
|
image: linuxkit/modprobe:v0.6
|
||
|
command: ["/bin/sh", "-c", "modprobe e1000e"]
|
||
|
- name: net-setup
|
||
|
image: linuxkit/ip:v0.6
|
||
|
command: ["/bin/sh", "-c", "ip a add 10.10.10.5/29 dev eth0; ip link set eth0 up; mkdir -p /boot; ping -W 20 -c 1 10.10.10.6; for p in /dev/sda /dev/sdb; do mount ${p}1 /boot/ && /root/update_imgs; umount /boot; done && sync && reboot -f" ]
|
||
|
capabilities:
|
||
|
- CAP_SYS_ADMIN
|
||
|
- CAP_SYS_BOOT
|
||
|
- CAP_NET_RAW
|
||
|
- CAP_NET_ADMIN
|
||
|
binds:
|
||
|
- /dev:/dev
|
||
|
- /root/update_imgs:/root/update_imgs:ro
|
||
|
|
||
|
|
||
|
files:
|
||
|
- path: root/update_imgs
|
||
|
source: configs/update_imgs.sh
|
||
|
mode: "0755"
|