-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
config-example.yaml
219 lines (206 loc) · 6.91 KB
/
config-example.yaml
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# list of modules that shall be used during image creation.
# see module-configs below to configure the modules (if applicable)
modules:
# debug mode: the initrds will be much larger and much more usable
- debug
# never disable those core components:
- base
- nbd
###########################################################################
# select one of the following systems:
# support for arch linux payload systems (mkinitcpio)
#- system-arch
# support for debian linux payload systems
#- system-debian
# support for gentoo+dracut payload systems
#- system-gentoo
###########################################################################
# optional components
# your /boot or / device is on lvm
- lvm
# support for r8152-family realtek USB ethernet controllers
#- r8152
# support for clevo notebook fan control
#- clevo-fancontrol
boot:
# the disk that is shared by the server
disk: /dev/disk/by-id/ata-SOME_RANDOM_DRIVE
# the boot partition where the server gets the kernel and initrd
part:
# directly accessible boot partition block device
type: plain
block: /dev/disk/by-partlabel/boot
# luks-encrypted boot partition
#type: luks
#luks_block: /dev/disk/by-uuid/e9aaxe22-8a07-4d0d-8c5f-b2b55ddc7cbb
#block: /dev/lollvmvg/boot
# the cmdline that will be given to the stiefeled system
load:
kernel: /boot/vmlinuz-linux
initrd: /boot/initramfs-linux.img
# cmdline that will be given to the stiefeled system
# root has to be your real system's '/' filesystem
cmdline:
- root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- rw
- consoleblank=0
# settings for automatic reboot of the laptop into stiefel-server
autokexec:
broadcast: True
mac_detection: False
# you probably don't need this!
# modern stiefelsystem has network discovery messages!
#
# if you want to reboot your system when one of these macs is
# detected, enter the macs that should trigger here.
# otherwise, use a valid but nonexisting mac.
macs:
- "11:11:11:11:11:11"
server-setup:
# how to setup the system that boots the stiefelsystem server
# the config json is always placed in /boot/stiefelsystem.json
# the kernel of the stiefelsystem
# both this kernel and the initrd are multi-purpose;
# the same images are used when creating the client flash drive
# and when kexec-ing into the server system.
stiefelsystem-kernel: /var/local/lib/stiefelsystem/kernel
# the initrd of the stiefelsystem
stiefelsystem-initrd: /var/local/lib/stiefelsystem/initrd
# kernel cmdline options for the stiefel-server kernel
cmdline:
- ro
# instructions for generating the initrd
initrd:
# list of debian packages that shall be included
include-packages:
- iputils-ping
shell: /usr/bin/dash
password: stiefel
# instructions for packing
packing:
# compression utility that is called for the initrd CPIO
# use 'cat' for uncompressed CPIO
compressor: pigz -11
# these paths will not be included in the initrd CPIO archive
# when packing it, to save space
exclude-paths:
- boot
- usr/share/man
- var/cache
- var/lib/apt
- var/lib/dpkg
- var/log
- usr/share/locale
- usr/share/info
- usr/share/doc
- usr/share/zoneinfo
- usr/share/bash-completion
- usr/share/zsh
- usr/share/initramfs-tools
- usr/share/keyrings
- usr/share/common-licenses
- usr/lib/apt
- usr/lib/dpkg
- etc/apt
- etc/dpkg
- etc/motd
- root
# files that are included in these apt packages will not be included
# the initrd CPIO archive when packing it, to save space
exclude-packages:
# we don't need no stinking package manager
# dpkg is unfortunately required for /sbin/start-stop-daemon
- apt
- debconf
- libapt-pkg6.0:amd64
- libdebconfclient0:amd64
# yay! our system is perl-free!
- perl-base
# utils
- e2fsprogs
- fdisk
- passwd
- adduser
- findutils
- hostname
- sensible-utils # don't seem very sensible to me!!!!!!!!111111
- libext2fs2:amd64
- libfdisk1:amd64
# initramfs-generation stuff
- initramfs-tools
- initramfs-tools-core
- cpio
- libklibc:amd64
- klibc-utils
# not so sure about these...
- ncurses-bin
- libdb5.3:amd64
- libsemanage-common
- libsemanage1:amd64
- libsepol1:amd64
- libss2:amd64
# who needs usability
- bash
- readline-common
- libreadline7:amd64
# haha who needs basic unix tools
- grep
- mawk
- tar
# this was just for running the nspawn commands during setup
- systemd-container
# the directory structure where the temporary and other files
# will be placed while running these scripts.
paths:
# cache folder; the ramdisk here persists over multiple iterations,
# and e.g. caches debootstrap downloads.
cache: cache
# work directory; the ramdisk here is re-created when a new initcpio
# is created.
workdir: workdir
# subdirectories of the workdir
workdir-subpaths:
# the target initrd CPIO archive
cpio: initrd.cpio
# the target initrd
initrd: initrd.nspawn
# the development overlayfs mount of the initrd, where compilers
# are installed and run.
initrd-devel: initrd.nspawn-devel
# module-specific options
module-configs:
debug:
better-shell: /usr/bin/bash
dont-exclude-packages: true
dont-exclude-paths: true
faster-compressor: pigz -1
extra-packages:
- bash-completion
- curl
- ethtool
- gzip
- htop
- iperf
- less
- man-db
- mlocate
- nbd-client
- neovim
- nmap
- pciutils
- pigz
- procps
- psmisc
- pv
- silversearcher-ag
- tcpdump
- time
- tmux
- usbutils
- util-linux
- xxd
- xz-utils
r8152:
url: https://github.com/wget/realtek-r8152-linux/archive/refs/tags/v2.16.3.20221209.tar.gz
clevo-fancontrol:
url: https://github.com/mic-e/clevo-fancontrol/archive/1.0.tar.gz