Age | Commit message (Collapse) | Author |
|
Docker: T7568: add apt-get update as last command
|
|
Some of GitHub actions were relying on cache from apt-get update
being available.
My previous changes broke those GitHub actions.
Add `apt-get update` as one of last commands, which adds ~20Mb,
but still 2.04Gb -> 2.01Gb for vyos-build comparing with Dockerfile
without cache cleaning.
No changes for vyos image as I hope it is not used in any automatic
scripts that use `apt-get install` without prior `apt-get update`.
|
|
T7579: added workflow for CLA
|
|
|
|
T7606: Split VPP test for smoketest
|
|
iso: T7610: include a file with ISO9660 string to prevent upgrade failures from 1.3.x
|
|
from 1.3.x
|
|
|
|
We have a separate PHONY for VPP tests
|
|
|
|
|
|
Exclude VPP tests from the general tests
Add the PHONY no-interfaces-no-vpp
Add the PHONE testcvpp (load VPP config only)
|
|
Docker: T7568: clean apt cache + clean some /tmp files
|
|
T7424: Restart vyos-configd after vyos.smoketests.hint file creation
|
|
|
|
T7424: Create vyos.smoketests.hint file before starting vyos-configd
|
|
vyos-configd
|
|
This saves ~50Mb for vyos-build image: 2.04Gb -> 1.99Gb
And ~19Mb for vyos image: 155Mb -> 136Mb
Docker stores all files created in each layer so
command
```
RUN wget -O /tmp/open-vmdk-master.zip https://github.com/.../master.zip && \
unzip -d /tmp/ /tmp/open-vmdk-master.zip && \
cd /tmp/open-vmdk-master/ && make && make install
```
will store open-vmdk-master.zip and /tmp/open-vmdk-master
in the image even though there is a cleanup command later:
```
RUN rm -rf /tmp/*
```
The cleanup command just makes these files invisible in last layer.
So temporary file must be removed in same RUN command
not to be stored in the image.
This commit adds such removals.
|
|
Kernel: T7539: compile in WWAN drivers and not use loadable modules
|
|
|
|
|
|
|
|
T4409: Fix Framed-Route with attr Accel-VRF-Name
|
|
build: T7453: Make raw image building logic more robust
|
|
T7534: netfilter: add asciidoc-base as build depend
|
|
|
|
T7530: Build package binaries script should exit if repo is absent
|
|
Signed-off-by: Date Huang <tjjh89017@hotmail.com>
|
|
T7535: aws-gwlbtun: add cmake for depend
|
|
|
|
|
|
The build package binaries script should exit if the repo is absent
or cannot be cloned
If a build package `repo-a` depends on the `repo-b` and the `repo-b`
cannot be cloned, then we shoud exit from the script to avoid
partly build dependencies
For example:
```
[[packages]]
name = "fake-repo"
commit_id = "v0.0.1"
scm_url = "https://github.com/vyos/fake-repo"
[[packages]]
name = "ethtool"
commit_id = "debian/1%6.10-1"
scm_url = "https://salsa.debian.org/kernel-team/ethtool"
```
If ethtool depends on some fake-package and this package cannot be
downloaded from the repo, then we shouldn't build the ethtool package
at all.
|
|
Signed-off-by: Date Huang <tjjh89017@hotmail.com>
|
|
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 <gabin.laurent@rte-international.com>
|
|
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 <gabin.laurent@rte-international.com>
|
|
Kernel: T7428: re-enable CONFIG_INOTIFY_STACKFS
|
|
Kernel compile time option for our custom patch to enable inotify
on stackable filesystems accidently got removed in commit cfdd4451ca3aa
("Kernel: T7428: remove io_uring support").
Option was re-enabled.
|
|
Kernel: T5887: update Linux Kernel to v6.6.92
|
|
|
|
packages: T7490: add build files for udp-broadcast-relay
|
|
|
|
T7494: FRR add build dependency flex libelf-dev
|
|
|
|
T7494: FRR add missing build bison and liblua dependencies
|
|
|
|
T7445: added open prs conflict checker caller workflow
|
|
T7352: add arg to test script for running smoketests under vyconfd/commitd
|
|
|
|
|
|
|