Skip to content

Commit a3b4d10

Browse files
jbtrystramdustymabe
authored andcommitted
osbuild/ bootc-install: symlink aleph files
Create symlinks to the aleph file created by bootc so our tests and tooling find the aleph at the expected path. Note that when moving to image-build we will likely move this to an overlay in the config, that's way easier than having to wire up a blueprint option to allow creating arbitrary symlinks.
1 parent 6d2442f commit a3b4d10

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

src/osbuild-manifests/build.raw-4k-image-bootc.ipp.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,31 @@ pipelines:
273273
partition:
274274
mpp-format-int: '{image4k.layout[''boot''].partnum}'
275275
target: /boot
276+
# We historically created an aleph file named .coreos-aleph-version.json
277+
# in the sysroot partition, for debugging purposes. bootc create it's
278+
# own that is mostly the same content. Let's make a symlink to it
279+
# for backward compatibility.
280+
- type: org.osbuild.ln
281+
options:
282+
paths:
283+
- target: ".bootc-aleph.json"
284+
link_name: "mount://root/.coreos-aleph-version.json"
285+
symbolic: true
286+
- target: ".bootc-aleph.json"
287+
link_name: "mount://root/.aleph-version.json"
288+
symbolic: true
289+
devices:
290+
disk:
291+
type: org.osbuild.loopback
292+
options:
293+
filename: disk.img
294+
partscan: true
295+
sector-size:
296+
mpp-format-int: "{four_k_sector_size}"
297+
mounts:
298+
- name: root
299+
type: org.osbuild.xfs
300+
source: disk
301+
partition:
302+
mpp-format-int: '{image4k.layout[''root''].partnum}'
303+
target: /

src/osbuild-manifests/build.raw-image-bootc.ipp.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,3 +255,29 @@ pipelines:
255255
partition:
256256
mpp-format-int: '{image.layout[''boot''].partnum}'
257257
target: /boot
258+
# We historically created an aleph file named .coreos-aleph-version.json
259+
# in the sysroot partition, for debugging purposes. bootc create it's
260+
# own that is mostly the same content. Let's make a symlink to it
261+
# for backward compatibility.
262+
- type: org.osbuild.ln
263+
options:
264+
paths:
265+
- target: ".bootc-aleph.json"
266+
link_name: "mount://root/.coreos-aleph-version.json"
267+
symbolic: true
268+
- target: ".bootc-aleph.json"
269+
link_name: "mount://root/.aleph-version.json"
270+
symbolic: true
271+
devices:
272+
disk:
273+
type: org.osbuild.loopback
274+
options:
275+
filename: disk.img
276+
partscan: true
277+
mounts:
278+
- name: root
279+
type: org.osbuild.xfs
280+
source: disk
281+
partition:
282+
mpp-format-int: '{image.layout[''root''].partnum}'
283+
target: /

0 commit comments

Comments
 (0)