-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinstallfs.yaml
More file actions
95 lines (79 loc) · 2.52 KB
/
Copy pathinstallfs.yaml
File metadata and controls
95 lines (79 loc) · 2.52 KB
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
{{- $architecture := or .architecture "arm64" -}}
{{- $username := or .username "mobian" -}}
{{- $password := or .password "1234" -}}
{{- $hostname := or .hostname "mobian" -}}
{{- $debian_suite := or .debian_suite "forky" -}}
{{- $suite := or .suite $debian_suite -}}
{{- $environment := or .environment "phosh" -}}
{{- $installfs := or .installfs "installfs.tar.gz" }}
{{- $mirror := or .mirror "https://deb.debian.org/debian" -}}
{{- $calamares := or .calamares "true" -}}
{{- $keyboard := or .keyboard "false" }}
{{- $kernel := or .kernel "default" }}
architecture: {{ $architecture }}
## Copyright (C) 2026 tabletseeker <https://github.com/tabletseeker>
## See the LICENSE for file COPYING conditions.
actions:
- action: debootstrap
suite: {{ $debian_suite }}
components:
- main
mirror: {{ $mirror }}
variant: minbase
- action: apt
description: Install setup packages
recommends: false
packages:
- ca-certificates
- apt-transport-https
- action: run
description: Setup debian repository
chroot: true
script: scripts/setup-apt.sh {{ $debian_suite }} {{ $suite }}
- action: run
description: Enable non-free-firmware repos
chroot: true
script: scripts/setup-apt-nonfree.sh true
{{ if eq $kernel "custom" }}
- action: apt
description: Install dependencies
recommends: false
packages:
- zstd
- initramfs-tools
- action: overlay
description: Move kernel files
source: kernel/
destination: /kernel/
- action: run
description: Install custom kernel
chroot: true
script: scripts/install_kernel.sh
{{ end }}
- action: recipe
recipe: include/packages-base-installer.yaml
variables:
debian_suite: {{ $debian_suite }}
{{ if eq $calamares "true" }}
- action: overlay
description: Move calamares files
source: overlays/packages/installer
{{ end }}
- action: run
description: Set up system
chroot: true
script: scripts/setup-system.sh {{ $hostname }} {{ $debian_suite }} {{ $keyboard }}
- action: run
description: Set up default user
chroot: true
script: scripts/setup-user.sh {{ $username }} {{ $password }}
- action: run
description: Set up installer
chroot: true
script: scripts/setup-installer.sh {{ $username }} {{ $debian_suite }} {{ $environment }} {{ $keyboard }}
- action: run
description: Fix script permissions for the installer
chroot: true
command: chmod +x /usr/bin/calamares-install-bootloader
- action: pack
file: {{ $installfs }}