File tree Expand file tree Collapse file tree 6 files changed +58
-44
lines changed
Expand file tree Collapse file tree 6 files changed +58
-44
lines changed Original file line number Diff line number Diff line change 1- # Refer to https://luet-lab.github.io/docs/docs/concepts/packages/specfile/#build-specs
2- # for the syntax format
1+ # ### system/cos system/cos-container and recovery/cos start here
2+ {{ if or (eq .Values.name "cos-container") (eq .Values.name "cos" ) }}
33requires :
44- name : " cos-setup"
55 category : " system"
@@ -131,3 +131,42 @@ excludes:
131131- ^/run/.*
132132
133133{{ end }}
134+ {{- end}}
135+ # ### system/cos system/cos-container and recovery/cos end here
136+
137+ # ### recovery/cos-img starts here
138+ {{ if eq .Values.name "cos-img" }}
139+ requires :
140+ - category : " recovery"
141+ name : " cos"
142+ version : " >=0"
143+ copy :
144+ - package :
145+ category : " recovery"
146+ name : " cos-squash"
147+ version : " >=0"
148+ source : " /."
149+ destination : " /recovery"
150+
151+ package_dir : " /output"
152+ steps :
153+ - mkdir /output
154+ - mksquashfs /recovery /output/recovery.squashfs -b 1024k -comp xz -Xbcj x86
155+ {{- end}}
156+ # ### recovery/cos-img ends here
157+
158+ # ### recovery/cos-squash starts here
159+ {{ if eq .Values.name "cos-squash" }}
160+ requires :
161+ - category : " recovery"
162+ name : " cos"
163+ version : " >=0"
164+
165+ requires_final_images : true
166+ unpack : true
167+
168+ excludes :
169+ - ^/var/cache/luet
170+ - ^/luetbuild
171+ {{- end}}
172+ # ### recovery/cos-squash ends here
Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ packages:
77 labels :
88 autobump.revdeps : " true"
99 autobump.revbump_related : " recovery/cos-img recovery/cos-squash"
10+ - name : " cos-container"
11+ category : " system"
12+ version : 0.6.8+10
13+ brand_name : " cOS"
14+ description : " cOS container image, used to build cOS derivatives from scratch"
15+ labels :
16+ autobump.revdeps : " true"
17+ autobump.revbump_related : " recovery/cos-img recovery/cos-squash"
1018 - name : " cos"
1119 category : " recovery"
1220 version : 0.6.8+10
@@ -15,11 +23,13 @@ packages:
1523 labels :
1624 autobump.revdeps : " true"
1725 autobump.revbump_related : " recovery/cos-img recovery/cos-squash"
18- - name : " cos-container "
19- category : " system "
20- version : 0.6.8+7
26+ - name : " cos-img "
27+ category : " recovery "
28+ version : 0.6.8+10
2129 brand_name : " cOS"
22- description : " cOS container image, used to build cOS derivatives from scratch"
23- labels :
24- autobump.revdeps : " true"
25- autobump.revbump_related : " recovery/cos-img recovery/cos-squash"
30+ - name : " cos-squash"
31+ category : " recovery"
32+ version : 0.6.8+10
33+
34+
35+
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments