76 Commits

Author SHA1 Message Date
Christian Breunig
fd737172f1 T861: add UEFI Secure Boot support
This adds support for UEFI Secure Boot. It adds the missing pieces to the Linux
Kernel and enforces module signing. This results in an additional security
layer where untrusted (unsigned) Kernel modules can no longer be loaded into
the live system.

NOTE: This commit will not work unless signing keys are present. Arbitrary
keys can be generated using instructions found in:

  data/live-build-config/includes.chroot/var/lib/shim-signed/mok/README.md
2024-09-14 23:05:23 +02:00
Christian Breunig
e86bfd7ab9 Testsuite: T861: add explicit --smoketest argument
In the past the CLI based smoketest was always executed under an else branch in
the testcase if-statement. Instead of using negative logic move all testcases
to positive logic adding an empty "catch all" else path.
2024-09-07 21:32:34 +02:00
Christian Breunig
115fb522c8 Testsuite: T861: add support to use VNC for a graphics console
To use VNC you could run "make test -- --vnc"
2024-09-07 21:32:34 +02:00
Christian Breunig
d851548515 Makefile: T2640: fix PHONY typo
Fix typo added in commit 499e8e1cbb ("Makefile: T2640: add helper to convert
ISO to OCI image to start a co…ntainer") should be PHONY over PHONE
2024-09-05 07:14:43 +02:00
Christian Breunig
388efd9f78 Makefile: T861: add possibility to pass CLI options to check-qemu-install
We can now pass any arbitrary option to the check-qemu-install script by
calling: make test -- --bar-option or make testc -- --foo-option

please note the -- which is not a typo but rather signals the end of options
and disables further option processing and passes the options down to the next
script.
2024-09-05 07:13:08 +02:00
Christian Breunig
9883b41b67 smoketest: T6510: use vyos-configd also on "make test" 2024-06-30 07:33:00 +02:00
Daniil Baturin
5753b4b624 build: T6414: rename the "iso" flavor to "generic" 2024-05-28 19:33:29 +01:00
Daniil Baturin
58fbf3a226 build: T3664: modify the module-level template path
instead of setting an environment variable
2024-05-06 16:19:26 +00:00
Daniil Baturin
ec42af75e0 build: T3664: adjust the vyos-1x submodule path in scripts 2024-04-22 15:58:34 +00:00
Daniil Baturin
abb5b518ab build: T3664: move sudo out of the make target
to avoid permission problems
2024-04-16 19:01:00 +00:00
Daniil Baturin
008bb5063d build: T3664: correct the parameterized make rule 2024-04-15 19:05:51 +00:00
Daniil Baturin
29288652ea build: T3664: add a parameterized make rule for build targets
to simplify the now-rather-tricky build script invocation
2024-04-15 17:17:49 +00:00
Daniil Baturin
5dcb6b7711 chore: T671: remove unused scripts and references to them 2024-03-20 17:50:51 +00:00
sarthurdev
63a8f9d3c6 config: T4919: Add emulated TPM encryption test 2024-02-20 10:46:01 +01:00
Christian Breunig
499e8e1cbb Makefile: T2640: add helper to convert ISO to OCI image to start a container
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]'
2023-11-26 20:13:28 +01:00
Christian Breunig
b3d0ebaf1d Makefile: add new target qemu-live
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
2023-11-19 10:18:49 +01:00
sarthurdev
4727dc1756 smoketest: Allow selection of smoketests to run
Example:
`make test MATCH="interfaces|policy"` will only run interfaces and policy tests
2023-09-14 20:04:54 +02:00
Daniil Baturin
3979b25dcf T3664: initial implementation of the build flavor system 2022-10-06 17:55:01 -04:00
Christian Poessinger
462c5f80e0 Testsuite: add new "make testraid" target for RAID-1 installation testing 2021-12-09 22:40:44 +01:00
Christian Poessinger
c5dee499ab Makefile: add common helper to check if ISO was build before running tests 2021-12-09 11:13:17 +01:00
Christian Poessinger
aa5f7b8666 Makefile: "make test" runs in UEFI mode "make testc" continues to use BIOS
With this change we validate both installation types that they work and
operates "as expected".

(cherry picked from commit e6ce9e76673d9de7c85510ba873f04a3521e1f19)
2021-10-02 12:11:04 +02:00
Christian Poessinger
19778c23a0 Makefile: add "make test-no-interfaces" to start smoketests w/o interface tests 2021-08-15 15:15:41 +02:00
Kim Hagen
7afee1ae93 T3664: remove vagrant build 2021-07-07 05:22:28 -05:00
Kim Hagen
43f4d5c3cd T3664: Eliminate obsolete build flavours 2021-07-07 05:03:38 -05:00
Daniil Baturin
ce49275606 Set the default shell to bash so that we can use -o pipefail 2021-06-29 08:38:18 +00:00
Christian Poessinger
320c1c49c3 Makefile: purge should clean QEMU test image, too 2020-11-01 08:13:41 +01:00
John Estabrook
42f0320956 smoketest: T3003: extend framework to load arbitrary config file 2020-10-27 08:37:00 -05:00
Christian Poessinger
ce7cdb649a Jenkins: clean QEMU build files 2020-10-17 22:53:00 +02:00
John Estabrook
2fd5898643 configd: T2582: add option to run testsuite with daemon (default off) 2020-08-31 09:33:47 -05:00
Christian Poessinger
e146d9b7a2 Makefile: indention fix 2020-06-27 15:14:40 +02:00
Christian Poessinger
240f036655 Makefile: user pipefail in iso build 2020-02-09 13:25:06 +01:00
Christian Poessinger
3da1a284dc Jenkins: add "make test" helper 2020-02-02 17:51:47 +01:00
Kim Hagen
62fce9c3c9 T1951: Include awscli package is the AWS build 2020-01-08 11:09:55 +01:00
Kim Hagen
af3bcd3740 add support for vep1400 2019-12-24 15:20:29 +01:00
Kim Hagen
14d6de44d1 prevent 70-persistent-net.rules from being created 2019-12-03 15:47:18 +01:00
Kim Hagen
33c865b2ad do not add the serial option for vep4600 2019-11-05 14:12:27 +01:00
Kim Hagen
2ec7f9b306 add build option for vep4600 2019-11-05 14:09:41 +01:00
UnicronNL
d8ee537f15 update cloud builds 2019-05-21 22:15:55 +02:00
Kim Hagen
396b826514 Revert "Makefile: proper handle 'make iso' error codes"
This reverts commit 2ffff339c5515280a1926d2ee134d5d2c7cdbcfc.
2019-05-03 15:49:40 +02:00
Kim Hagen
8984e91e89 Revert "use bash as the shell for make"
This reverts commit 01fd8dfdec8278e63f43502da44b4e7f8d0bf9e5.
2019-05-03 15:49:21 +02:00
Kim
01fd8dfdec
use bash as the shell for make 2019-05-03 14:23:18 +02:00
Christian Poessinger
2ffff339c5 Makefile: proper handle 'make iso' error codes 2019-04-26 10:32:44 +02:00
Kim Hagen
401165bc85 add debug build for GCE 2019-04-15 16:30:35 +02:00
Kim Hagen
1f0b53aa5c add cloud init package list 2019-04-03 16:49:08 +02:00
Kim Hagen
48bcbfff70 Add vmware ovf build procedure 2019-03-18 16:01:29 +01:00
Kim Hagen
8dcda0e05b Add uefi to vyos-build 2018-11-12 10:07:52 +01:00
Kim Hagen
7a19a16233 Add part of oracle cloud build 2018-10-29 21:43:09 +01:00
Kim Hagen
a0cdf15c5e Add build command for AWS 2018-10-25 14:15:34 +02:00
Kim Hagen
16cc9be3ba Separate files needed for different cloud providers
Fix serial console speed settings
Add google cloud image generation
2018-10-23 23:58:42 +02:00
Kim Hagen
d7b7f5a044 Add Azure creation script 2018-10-22 00:59:33 +02:00