-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrecipe.yml
104 lines (96 loc) · 3.45 KB
/
recipe.yml
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
base: ghcr.io/vanilla-os/core:main
name: Vanilla Installer
id: installer
labels:
maintainer: Vanilla OS Contributors
args:
DEBIAN_FRONTEND: noninteractive
runs:
- echo 'APT::Install-Recommends "1";' > /etc/apt/apt.conf.d/01norecommends
stages:
- id: build
base: ghcr.io/vanilla-os/pico:main
singlelayer: false
labels:
maintainer: Vanilla OS Contributors
args:
DEBIAN_FRONTEND: noninteractive
runs:
commands:
- echo 'APT::Install-Recommends "1";' > /etc/apt/apt.conf.d/01norecommends
modules:
- name: init-setup
type: shell
commands:
- echo 'PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"' > /etc/environment
- sed -i '4,10d' /etc/profile
- apt update
- apt upgrade -y
- apt clean
- name: packages-modules
type: includes
includes:
- gh:Vanilla-OS/core-image:main:modules/01-kernel.yml
- gh:Vanilla-OS/core-image:main:modules/05-firmware.yml
- gh:Vanilla-OS/core-image:main:modules/10-input-and-locale.yml
- gh:Vanilla-OS/core-image:main:modules/50-fs.yml
- gh:Vanilla-OS/core-image:main:modules/70-compression.yml
- gh:Vanilla-OS/core-image:main:modules/90-network.yml
- gh:Vanilla-OS/core-image:main:modules/91-iptables.yml
- modules/00-vanilla-desktop-base.yml
- modules/00-vanilla-backgrounds.yml
- modules/00-vanilla-installer.yml
- modules/20-gnome.yml
- modules/60-live-boot.yml
- modules/70-fs-tools.yml
- modules/90-accessibility.yml
- modules/998-vanilla-cleanup.yml
- modules/999-pkg-cleanup.yml
- name: user
type: shell
commands:
- useradd -m vanilla
- usermod -aG sudo vanilla
- passwd -d vanilla
- mv /etc/gdm/* /etc/gdm3/.
- rm -r /etc/gdm
- name: system
type: shell
commands:
- cp /boot/vmlinuz-$(ls -1 /usr/lib/modules | head -n1) /efi/vmlinuz
- dracut --no-machineid --kernel-image /efi/vmlinuz --kver "$(ls -1 /usr/lib/modules | head -n1)" --kernel-cmdline 'rw quiet root=live:LABEL=vanilla-orchid console=tty0' --add dmsquash-live --install plymouth --install head --install tail --install less --install lsof /efi/initramfs.img
- SYSTEMD_ESP_PATH=/efi bootctl install --no-variables
- name: cleanup
type: shell
commands:
- apt autoremove -y
- apt clean
- rm -rf /boot # Kernel and initramfs are part of the efi image, boot isnt used
- rm -rf /initrd*
- rm -rf /vmlinuz* # why are these even there
- rm -rf /FsGuard
- name: cleanup2
type: shell
commands:
- rm -rf /usr/share/gocode/src
- rm -rf /tmp/*
- rm -rf /var/tmp/*
- rm -rf /sources
finalize:
# - name: efi size
# type: shell-final
# commands:
# - bash ./genimg/scripts/efisize.sh "$FSROOT/efi"
# cwd: "$PROJROOT"
- name: genimage stage1
type: genimage
config: "$PROJROOT/genimg/stage1.conf"
rootpath: "$FSROOT"
inputpath: "$PROJROOT/genimg/build"
outputpath: "$PROJROOT/genimg/stage2"
- name: genimage stage2
type: genimage
config: "$PROJROOT/genimg/stage2.conf"
rootpath: "$PROJROOT/genimg/stage2"
inputpath: "$PROJROOT/genimg/build"
outputpath: "$PROJROOT/genimg/build"