Age | Commit message (Collapse) | Author |
|
to avoid a mix of image build scripts and ancilliary scripts in the same directory
(cherry picked from commit 750819bfec5335566dfc48de1ab6dbbc869068a3)
|
|
(cherry picked from commit 65b0321a8b92a4fcbb211caeec31aaa82a3a490c)
|
|
SquashFS image
(cherry picked from commit f31701f1b48b696ed4176b8ae413aa956ff15c5c)
|
|
Commit 611cfc85c531 ("T6173: validate allowed characters in ISO image name")
missed the probability that version is a dict member bot empty.
(cherry picked from commit 801def2d7105acc45868c361730e5be5ab4c36ea)
|
|
Building custom VyOS version: 1.5-asdf%-202404081841
I: Checking if packages required for VyOS image build are installed
Version contained illegal character(s), allowed: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-+
(cherry picked from commit 611cfc85c531f6b6c55f89503d6d2cdf84213317)
|
|
build: T1449: add default_config field support in flavor files to allow people to easily include a custom default config
|
|
(cherry picked from commit 3494ab3e0a50ed701a4b127e51b919c2ceb61bc3)
|
|
to allow people to easily include a custom default config
|
|
|
|
Use single source for project related URLs that will later be consumed by the
MOTD template used.
(cherry picked from commit 7b89f74c316c278ff6af73e75f357139d56243da)
|
|
(cherry picked from commit 195c13022de0b022e054347f0170fb536f4e9b9b)
|
|
|
|
This was discussed in slack, where a user was missing the Git commit ID in his
custom build
Reason is/was:
git clone --single-branch -b 1.4.0-epa1 https://github.com/vyos/vyos-build
Checks out the 1.4.0-epa1 tag as HEAD and does not clone any branch information.
This results in:
>>> import git
>>> repo = git.Repo('.')
>>> repo.head.object.hexsha[:14]
'bcac2eb1f9b49c'
>>> git_branch = repo.active_branch.name
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/git/repo/base.py", line 881, in active_branch
return self.head.reference
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/git/refs/symbolic.py", line 311, in _get_reference
raise TypeError("%s is a detached symbolic reference as it points to %r" % (self, sha))
TypeError: HEAD is a detached symbolic reference as it points to 'bcac2eb1f9b49cc15ebda65838e5465543dbb9c6'
during the build. The exception handler resets the branch and commit name to an empty string: https://github.com/vyos/vyos-build/blob/a3e60a00b400a1bad8609d5ce1abb0bb7abed7bc/scripts/build-vyos-image#L281-L296
This now adds a proper error message during build so it fails early.
(07:46) vyos_bld 08278c5a1172:/vyos/vyos-build # isobuild -test
Building custom VyOS version: 1.5-test-202402250746
I: Checking if packages required for VyOS image build are installed
build/config
Could not retrieve information from git: HEAD is a detached symbolic reference as it points to '39612f541e55bea19868f50f16d7a6c6e0034ed2'
(cherry picked from commit 7c27657c79046dac8ae509a4eacb1a3a152e2d23)
|
|
|
|
|
|
and fix some typos
|
|
syntax
|
|
syntax
|
|
repository
|
|
T4796: Allow configuration of 'bootloader' param
|
|
Remove hard-coded values for "bootloader" when creating the live-build,
replaced with the value of `bootloaders`.
Set the current value to the default value if not specified, via
`defaults.toml`.
Add the default for arm64 as `grub-efi`.
|
|
Currently, additional_repositories in the effective build_config are
ignored due to a bug wherein all values end up under
`args['custom_apt_entry']` rather than
`build_config['custom_apt_entry']`.
This change fixes that, ensuring that the content of
`build_config['additional_repositories]` is added to
`build_config['custom_apt_entry']` alongside the command-line arguments.
|
|
T4796: Check more cautiously for presence of keys
|
|
T4796: Default args to list where list is expected
|
|
T4796: Prefer mix-in config over default config
|
|
Fix T4800: wrong chroot_includes_dir var reference
|
|
|
|
|
|
custom_apt_entry, custom_apt_key, and custom_package are expected to
be lists, but when a value is not provided they default to None. This
prevents lists provided in mix-in or flavor configurations from being
merged as expected.
https://docs.python.org/3/library/argparse.html#default
|
|
Rather than only looking at the default config, look at the merged
build_config.
Check wether additional_repositories is actually defined before trying
to reference it.
|
|
|
|
|
|
|
|
in buils-vyos-image
|
|
|
|
|
|
* APT::Default-Release caused an issue when local packages present
|
|
|