<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-build.git/scripts/image-build, branch current</title>
<subtitle>VyOS image build scripts (mirror of https://github.com/vyos/vyos-build.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-build.git/atom?h=current</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-build.git/atom?h=current'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/'/>
<updated>2025-06-10T14:43:29+00:00</updated>
<entry>
<title>Remove a stray debug output</title>
<updated>2025-06-10T14:43:29+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2025-06-10T14:43:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=75f72ab9013c7ae5226497526e4db6e36dd43678'/>
<id>urn:sha1:75f72ab9013c7ae5226497526e4db6e36dd43678</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T7453: handle dynamic partition mapping in raw image build</title>
<updated>2025-06-06T18:59:22+00:00</updated>
<author>
<name>Gabin-CC</name>
<email>gabin.laurent@rte-international.com</email>
</author>
<published>2025-06-06T18:54:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=02c2e306228a3de24623946499923604341884d3'/>
<id>urn:sha1:02c2e306228a3de24623946499923604341884d3</id>
<content type='text'>
Enhanced the raw image creation logic to dynamically detect and assign
EFI and root partitions based on the number of partitions created by kpartx.

- Supports both 2-partition and 3-partition layouts
- Adds debug output for mapped partitions
- Avoids hardcoded assumptions about partition order
- Improves resilience in cloud-init and containerized build contexts

Fixes build failure when /dev/loopXp3 is missing or not mapped properly.

Signed-off-by: Gabin-CC &lt;gabin.laurent@rte-international.com&gt;
</content>
</entry>
<entry>
<title>T7453: Enhance raw/qcow2 image creation</title>
<updated>2025-06-06T18:58:04+00:00</updated>
<author>
<name>Gabin-CC</name>
<email>gabin.laurent@rte-international.com</email>
</author>
<published>2025-06-05T01:37:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=1cda2d42bb5064868c6435c14a5d3e4b047500d8'/>
<id>urn:sha1:1cda2d42bb5064868c6435c14a5d3e4b047500d8</id>
<content type='text'>
Description
This pull request introduces improvements to the raw_image.py script responsible for building raw disk images in the VyOS build process.

Main Changes
Added use of kpartx to reliably map EFI and root partitions from the loop device.
Introduced disk_details as an attribute on the BuildContext object to pass partition metadata through the image build steps.
Improved the __exit__ method for BuildContext to unmount all mount points and clean up kpartx mappings and loop devices, even in failure cases.
Fixed a crash in mount_image() when con.disk_details was not set.
Added useful debug logs for loop device usage and partition mapping.
Motivation
The previous implementation assumed partitions like /dev/loopXp3 would appear automatically, which is unreliable across some environments (especially containers or newer systems).

This PR makes the process more reliable by explicitly mapping partitions with kpartx, a tool designed for this purpose.

It also ensures proper resource cleanup by unmounting and detaching everything cleanly, preventing leaked loop devices or stale mount points.

Test Instructions

Flavor : cloud-init.toml
packages = [
  "cloud-init",
  "qemu-guest-agent"
]

image_format = ["qcow2"]
disk_size = 10

[boot_settings]
console_type = "ttyS0"

Run:

sudo ./build-vyos-image --architecture amd64 \
  --build-by "you@example.com" \
  --reuse-iso vyos-1.5-rolling-*.iso \
  cloud-init
Expected behavior:

The build completes without errors.
The .qcow2 image file is generated and bootable (e.g., in KVM or Proxmox).
Partitions are mounted correctly via /dev/mapper/loopXp*.

Signed-off-by: Gabin-CC &lt;gabin.laurent@rte-international.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #957 from dmbaturin/T7409-no-md5</title>
<updated>2025-04-29T14:23:12+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@vyos.io</email>
</author>
<published>2025-04-29T14:23:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=65f3b103a5b3127fbd39b21efc4026073fa53082'/>
<id>urn:sha1:65f3b103a5b3127fbd39b21efc4026073fa53082</id>
<content type='text'>
build: T7409: do not include MD5 checksums in the ISO image</content>
</entry>
<entry>
<title>build: T7409: do not include MD5 checksums in the ISO image</title>
<updated>2025-04-28T17:27:58+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2025-04-28T17:27:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=64ff1e538d09b0859b1b3f8e5adc8529bcea2919'/>
<id>urn:sha1:64ff1e538d09b0859b1b3f8e5adc8529bcea2919</id>
<content type='text'>
</content>
</entry>
<entry>
<title>build: T7399: remove the APT option to allow downgrades</title>
<updated>2025-04-25T18:45:03+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2025-04-25T18:41:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=1f400a4b01aa19ab240b34fab19b78a53f3f9bc1'/>
<id>urn:sha1:1f400a4b01aa19ab240b34fab19b78a53f3f9bc1</id>
<content type='text'>
It doesn't appear necessary anymore, if it ever was
</content>
</entry>
<entry>
<title>build: T7372: correctly quote lb_config arguments</title>
<updated>2025-04-18T12:04:44+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2025-04-18T12:04:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=2986466f7b7550c142eaa5a0c03a3505d8bf3706'/>
<id>urn:sha1:2986466f7b7550c142eaa5a0c03a3505d8bf3706</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T861: use secure-boot certificates from data/certificates</title>
<updated>2025-03-18T15:19:39+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-03-16T19:10:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=a02b10b2ba4197c4dcd84eef053e4ab94995295b'/>
<id>urn:sha1:a02b10b2ba4197c4dcd84eef053e4ab94995295b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T861: disable colored output when using live-build - good for CI</title>
<updated>2025-03-18T15:19:39+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-03-16T19:07:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=8d58a72368e6462fb464dad88bbc97599476b863'/>
<id>urn:sha1:8d58a72368e6462fb464dad88bbc97599476b863</id>
<content type='text'>
</content>
</entry>
<entry>
<title>build: T7109: add support for includes_binary in flavors</title>
<updated>2025-01-30T14:14:17+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2025-01-30T14:14:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=f11b5a3282c2374994f4460b7bfd9bd23f628194'/>
<id>urn:sha1:f11b5a3282c2374994f4460b7bfd9bd23f628194</id>
<content type='text'>
</content>
</entry>
</feed>
