2018-12-10 01:16:07 +00:00
|
|
|
kernel:
|
2022-06-01 10:39:40 +00:00
|
|
|
#image: nemunaire/kernel:5.10.62-0b705d955f5e283f62583c4e227d64a7924c138f-amd64
|
|
|
|
image: linuxkit/kernel:5.10.104
|
2018-12-10 01:16:07 +00:00
|
|
|
cmdline: "console=ttyS0 console=tty0"
|
|
|
|
|
|
|
|
|
|
|
|
init:
|
2022-06-01 10:39:40 +00:00
|
|
|
- nemunaire/mdadm:3886edd37c79d5f8000e4f3c4bacaff1f6302aa3
|
2020-01-30 18:00:46 +00:00
|
|
|
- alpine:latest
|
2018-12-10 01:16:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
files:
|
2020-01-30 18:00:46 +00:00
|
|
|
- path: /init
|
|
|
|
contents: |
|
|
|
|
#!/bin/sh -x
|
|
|
|
mount -t devtmpfs none /dev
|
|
|
|
mount -t proc none /proc
|
|
|
|
mount -t sysfs none /sys
|
|
|
|
|
|
|
|
mdev -s
|
|
|
|
mdadm --auto-detect
|
|
|
|
mdadm --assemble /dev/md2 /dev/sd*1
|
|
|
|
|
|
|
|
ip a add 10.10.10.5/29 dev eth0
|
|
|
|
ip link set eth0 up
|
|
|
|
|
|
|
|
mkdir -p /boot
|
|
|
|
|
|
|
|
# Wait e1000e launched
|
|
|
|
if ! ping -W 2 -c 1 10.10.10.6
|
|
|
|
then
|
|
|
|
sleep 4
|
|
|
|
fi
|
|
|
|
|
|
|
|
while ! ping -W 10 -c 1 10.10.10.6
|
|
|
|
do
|
|
|
|
echo "Unable to contact 10.10.10.6"
|
|
|
|
echo "Exit the shell when connection established."
|
|
|
|
/bin/ash
|
|
|
|
done
|
|
|
|
|
|
|
|
mount /dev/md2 /boot/ &&
|
|
|
|
/root/update_imgs ||
|
|
|
|
/bin/ash
|
|
|
|
|
|
|
|
umount /boot &&
|
|
|
|
sync &&
|
|
|
|
reboot -f
|
|
|
|
|
|
|
|
/bin/ash
|
|
|
|
mode: "0755"
|
|
|
|
|
2018-12-10 01:16:07 +00:00
|
|
|
- path: root/update_imgs
|
|
|
|
source: configs/update_imgs.sh
|
|
|
|
mode: "0755"
|