1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
{% extends 'base.jinja2' %}
{% block body %}
device_type: d02
{% set console_device = console_device | default('ttyS0') %}
{% set baud_rate = baud_rate | default(115200) %}
{% set grub_installed_device = grub_installed_device | default('(hd1,gpt1)') %}
{% block vland %}
{% endblock vland %}
actions:
deploy:
connections:
lxc:
serial:
methods:
tftp:
boot:
connections:
lxc:
serial:
methods:
grub:
parameters:
bootloader_prompt: grub>
boot_message: Linux version
ramdisk:
commands:
- net_bootp
- 'linux (tftp,{SERVER_IP})/{KERNEL} console={{ console_device }},{{ baud_rate }} earlycon=uart8250,mmio32,0x80300000 root=/dev/ram0 {{ base_ip_args }}'
- initrd (tftp,{SERVER_IP})/{RAMDISK}
- devicetree (tftp,{SERVER_IP})/{DTB}
- boot
nfs:
commands:
- net_bootp
- 'linux (tftp,{SERVER_IP})/{KERNEL} console={{ console_device }},{{ baud_rate }} earlycon=uart8250,mmio32,0x80300000 root=/dev/nfs rw {{ base_nfsroot_args }} {{ base_ip_args }}'
- devicetree (tftp,{SERVER_IP})/{DTB}
- boot
debian-installer:
expect_shell: False
commands:
- net_bootp
- linux (tftp,{SERVER_IP})/{KERNEL} auto=true interface=eth0 priority=critical noshell BOOT_DEBUG=1 DEBIAN_FRONTEND=text url=tftp://{SERVER_IP}/{PRESEED_CONFIG} efi=noruntime --- console={{ console_device }},{{ baud_rate }} debug verbose
- initrd (tftp,{SERVER_IP})/{RAMDISK}
- devicetree (tftp,{SERVER_IP})/{DTB}
- boot
debian-installed:
commands:
- insmod part_gpt
- insmod ext2
- insmod part_msdos
- insmod chain
- ls
- ls {{ grub_installed_device }}
- sleep 10
- set
- set root={{ grub_installed_device }}
- sleep 10
- ls {{ grub_installed_device }}
- sleep 10
- chainloader {{ grub_installed_device }}/efi/debian/grubaa64.efi
- sleep 10
- boot
{% endblock body %}
{% block timeouts %}
timeouts:
actions:
grub-main:
seconds: 5400
bootloader-action:
seconds: 5400
bootloader-interrupt:
seconds: 300
bootloader-commands:
seconds: 600
auto-login:
seconds: 600
auto-login-action:
seconds: 600
installer-wait:
seconds: 5400
pdu-reboot:
seconds: 3000
connections:
pdu-reboot:
seconds: 3000
grub-main:
seconds: 5400
bootloader-action:
seconds: 5400
installer-wait:
seconds: 5400
bootloader-retry:
seconds: 3000
bootloader-interrupt:
seconds: 300
bootloader-commands:
seconds: 600
{% endblock timeouts %}
|