<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-build.git/scripts/build-vyos-image, branch 1.4.0-epa2</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=1.4.0-epa2</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-build.git/atom?h=1.4.0-epa2'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/'/>
<updated>2024-03-02T14:03:49+00:00</updated>
<entry>
<title>T6077: add bugtrcker, documentation and new URL to version file</title>
<updated>2024-03-02T14:03:49+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-03-01T20:44:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=df16931ef710b02777523973e6a202891e1ac22a'/>
<id>urn:sha1:df16931ef710b02777523973e6a202891e1ac22a</id>
<content type='text'>
Use single source for project related URLs that will later be consumed by the
MOTD template used.

(cherry picked from commit 7b89f74c316c278ff6af73e75f357139d56243da)
</content>
</entry>
<entry>
<title>T3664: remove leading whitespaces from generated /usr/lib/os-release</title>
<updated>2024-03-02T09:59:03+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-03-01T20:41:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=7be6795c631d310a4811a297d1f5d1bc648fe8d7'/>
<id>urn:sha1:7be6795c631d310a4811a297d1f5d1bc648fe8d7</id>
<content type='text'>
(cherry picked from commit 195c13022de0b022e054347f0170fb536f4e9b9b)
</content>
</entry>
<entry>
<title>T6065: Remove duplicated lines from build-vyos-image script</title>
<updated>2024-02-25T14:54:29+00:00</updated>
<author>
<name>hcuk94</name>
<email>me@hc.me.uk</email>
</author>
<published>2024-02-25T14:54:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=6d32501f7b8bc9c8b70e6af69c9457e659a527d1'/>
<id>urn:sha1:6d32501f7b8bc9c8b70e6af69c9457e659a527d1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T6064: add build error if branch information from Git repository is missing</title>
<updated>2024-02-25T09:27:59+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-02-25T07:41:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=b6e6b62b689d8da0d3488c0039307308c3e9ae21'/>
<id>urn:sha1:b6e6b62b689d8da0d3488c0039307308c3e9ae21</id>
<content type='text'>
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:

&gt;&gt;&gt; import git
&gt;&gt;&gt; repo = git.Repo('.')
&gt;&gt;&gt; repo.head.object.hexsha[:14]
'bcac2eb1f9b49c'
&gt;&gt;&gt; git_branch = repo.active_branch.name
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  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)
</content>
</entry>
<entry>
<title>build: T3664: fix the chroot includes path</title>
<updated>2024-02-24T12:09:36+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2024-02-24T12:09:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=273d624c68f8dafc7b299fb73e97aceb6f09e521'/>
<id>urn:sha1:273d624c68f8dafc7b299fb73e97aceb6f09e521</id>
<content type='text'>
</content>
</entry>
<entry>
<title>live-build: add missing quotes on chroot-squashfs-compression</title>
<updated>2023-09-02T17:02:03+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-09-02T17:02:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=9403274bf29110b3d1aa5be99a029a97103e02f1'/>
<id>urn:sha1:9403274bf29110b3d1aa5be99a029a97103e02f1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5538: Change order within variable lb_config_tmpl to fit order of manpage and fix some typos</title>
<updated>2023-09-02T10:53:03+00:00</updated>
<author>
<name>Apachez</name>
<email>apachez@gmail.com</email>
</author>
<published>2023-09-02T10:53:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=e472fcbf319c325bbdabd75dd02c7693baaf5b7f'/>
<id>urn:sha1:e472fcbf319c325bbdabd75dd02c7693baaf5b7f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5510: Shrink imagesize and improve read performance by changing mksquashfs syntax</title>
<updated>2023-09-02T01:23:17+00:00</updated>
<author>
<name>Apachez</name>
<email>apachez@gmail.com</email>
</author>
<published>2023-09-02T01:23:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=b1425b1f379c83db23625d4a944d32bc56feb055'/>
<id>urn:sha1:b1425b1f379c83db23625d4a944d32bc56feb055</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5510: Shrink imagesize and improve read performance by changing mksquashfs syntax</title>
<updated>2023-09-01T19:42:37+00:00</updated>
<author>
<name>Apachez</name>
<email>apachez@gmail.com</email>
</author>
<published>2023-09-01T19:42:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=baee59d26a11c1f1105bff632514212383b0650a'/>
<id>urn:sha1:baee59d26a11c1f1105bff632514212383b0650a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5122: Move archive-areas to defaults.toml to support non-free-firmware repository</title>
<updated>2023-03-29T08:49:32+00:00</updated>
<author>
<name>sskaje</name>
<email>sskaje@gmail.com</email>
</author>
<published>2023-03-29T08:49:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=bf66214dad7a7d9830f89cc3bd5405fc58a4497d'/>
<id>urn:sha1:bf66214dad7a7d9830f89cc3bd5405fc58a4497d</id>
<content type='text'>
</content>
</entry>
</feed>
