<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-build.git/scripts, 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>T3664: remove obsolete make-version-file</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:39:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=0b0956f82093d8b661313ed22291611b909ecbc6'/>
<id>urn:sha1:0b0956f82093d8b661313ed22291611b909ecbc6</id>
<content type='text'>
Commit 3979b25dcf ("T3664: initial implementation of the build flavor system")
removed the call to make-version-file, thus we can also drop the file itself.

(cherry picked from commit 8a49912cee67c916533fc8fceed76c94941cb2e5)
</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>Merge pull request #463 from vyos/mergify/bp/sagitta/pr-462</title>
<updated>2023-12-17T07:59:29+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-12-17T07:59:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=c457790d3423219c5a889b686af965589074aca6'/>
<id>urn:sha1:c457790d3423219c5a889b686af965589074aca6</id>
<content type='text'>
T2640: update VyOS in docker image to current version (backport #462)</content>
</entry>
<entry>
<title>image: T4516: update test script for changes in prompts/partition id</title>
<updated>2023-12-17T03:09:22+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2023-11-15T21:15:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=9b12a11b3af935a0dc751a69b18c08d001fb1a4f'/>
<id>urn:sha1:9b12a11b3af935a0dc751a69b18c08d001fb1a4f</id>
<content type='text'>
(cherry picked from commit 64796852a4ba1eae5c7b436109365b798a99b38e)
</content>
</entry>
<entry>
<title>Makefile: add new target qemu-live</title>
<updated>2023-11-27T07:48:02+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-11-19T09:18:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=553fe4fb0116d3d4a867f07ca3bdef65f6c6dbc0'/>
<id>urn:sha1:553fe4fb0116d3d4a867f07ca3bdef65f6c6dbc0</id>
<content type='text'>
Simply boot a live qemu version from the latest ISO build

(10:18) cpo lnx01:~/vyos-build [current] # sudo make qemu-live
if [ ! -f build/live-image-amd64.hybrid.iso ]; then
echo "Could not find build/live-image-amd64.hybrid.iso"
exit 1
fi
scripts/check-qemu-install --qemu-cmd build/live-image-amd64.hybrid.iso
 INFO - Creating Disk image testinstall-20231119-101823-4483.img
SeaBIOS (version 1.16.2-debian-1.16.2-1)
Machine UUID f48b60b2-e6ad-49ef-9d09-4245d0585e52
Booting from DVD/CD...

ISOLINUX 6.04 20200816 ETCD Copyright (C) 1994-2015 H. Peter Anvin et al

(cherry picked from commit b3d0ebaf1d7d5b5a54be284e553defb8ed4a7a6f)
</content>
</entry>
<entry>
<title>Makefile: T2640: add helper to convert ISO to OCI image to start a container</title>
<updated>2023-11-27T07:46:58+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-11-26T19:12:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=98d05b1131be6e650b4da931929fa0c08d3a8723'/>
<id>urn:sha1:98d05b1131be6e650b4da931929fa0c08d3a8723</id>
<content type='text'>
Use either "make oci" or call the script manually:

$ scripts/iso-to-oci build/live-image-amd64.hybrid.iso

I: mount ISO build/live-image-amd64.hybrid.iso
I: extracting squashfs content
I: generate OCI container image vyos-1.5-strongswan-202311241125.tar
I: to import the previously generated OCI image to your local images run:

   docker import vyos-1.5-strongswan-202311241125.tar vyos:1.5-strongswan-202311241125 --change 'CMD [/sbin/init]'

(cherry picked from commit 499e8e1cbb90e24acf80d383a69e138cd745807c)
</content>
</entry>
</feed>
