summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xdata/live-build-config/hooks/live/18-enable-disable_services.chroot1
-rw-r--r--data/live-build-config/includes.binary/isolinux/splash.pngbin39611 -> 23666 bytes
-rwxr-xr-xscripts/check-qemu-install21
-rwxr-xr-xscripts/image-build/build-vyos-image9
5 files changed, 24 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index a3b4c545..8a6f089c 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ test: checkiso
.PHONY: test-no-interfaces
.ONESHELL:
test-no-interfaces: checkiso
- scripts/check-qemu-install --debug --configd --smoketest --uefi --no-interfaces build/live-image-amd64.hybrid.iso
+ scripts/check-qemu-install --debug --configd --smoketest --uefi --no-interfaces --memory 8 build/live-image-amd64.hybrid.iso
.PHONY: test-interfaces
.ONESHELL:
diff --git a/data/live-build-config/hooks/live/18-enable-disable_services.chroot b/data/live-build-config/hooks/live/18-enable-disable_services.chroot
index 6420c0d3..463abf09 100755
--- a/data/live-build-config/hooks/live/18-enable-disable_services.chroot
+++ b/data/live-build-config/hooks/live/18-enable-disable_services.chroot
@@ -70,6 +70,7 @@ systemctl disable dpkg-db-backup.service
systemctl disable zabbix-agent2.service
systemctl disable suricata.service
systemctl disable vyconfd.service
+systemctl disable vpp.service
echo I: Enabling services
systemctl enable vyos-hostsd.service
diff --git a/data/live-build-config/includes.binary/isolinux/splash.png b/data/live-build-config/includes.binary/isolinux/splash.png
index 4137d52b..f6b43d56 100644
--- a/data/live-build-config/includes.binary/isolinux/splash.png
+++ b/data/live-build-config/includes.binary/isolinux/splash.png
Binary files differ
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index 5a59f13c..f29c5f3d 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -105,11 +105,13 @@ with open('data/defaults.toml', 'rb') as f:
vyos_defaults = tomli.load(f)
# This is what we got from the build
-with open('build/manifest.json', 'rb') as f:
- manifest = json.load(f)
+manifest_file = 'build/manifest.json'
+if os.path.isfile(manifest_file):
+ with open('build/manifest.json', 'rb') as f:
+ manifest = json.load(f)
-vyos_version = manifest['build_config']['version']
-vyos_codename = manifest['build_config']['release_train']
+ vyos_version = manifest['build_config']['version']
+ vyos_codename = manifest['build_config']['release_train']
class StreamToLogger(object):
"""
@@ -552,16 +554,19 @@ try:
c.expect(op_mode_prompt)
c.sendline('show system memory')
c.expect(op_mode_prompt)
+ c.sendline('show version all | match "vpp|vyos-1x"')
+ c.expect(op_mode_prompt)
#################################################
# Verify /etc/os-release via lsb_release
#################################################
c.sendline('lsb_release --short --id 2>/dev/null')
c.expect('VyOS')
- c.sendline('lsb_release --short --release 2>/dev/null')
- c.expect(vyos_version)
- c.sendline('lsb_release --short --codename 2>/dev/null')
- c.expect(vyos_codename)
+ if os.path.isfile(manifest_file):
+ c.sendline('lsb_release --short --release 2>/dev/null')
+ c.expect(vyos_version)
+ c.sendline('lsb_release --short --codename 2>/dev/null')
+ c.expect(vyos_codename)
# Ensure ephemeral key is loaded
vyos_kernel_key = 'VyOS build time autogenerated kernel key'
diff --git a/scripts/image-build/build-vyos-image b/scripts/image-build/build-vyos-image
index 0614f214..d969c157 100755
--- a/scripts/image-build/build-vyos-image
+++ b/scripts/image-build/build-vyos-image
@@ -590,6 +590,15 @@ DOCUMENTATION_URL="{build_config['documentation_url']}"
with open(file_path, 'w') as f:
f.write(i["data"])
+ if has_nonempty_key(build_config, "includes_binary"):
+ for i in build_config["includes_binary"]:
+ file_path = os.path.join(binary_includes_dir, i["path"])
+ if debug:
+ print(f"D: Creating binary image include file: {file_path}")
+ os.makedirs(os.path.dirname(file_path), exist_ok=True)
+ with open(file_path, 'w') as f:
+ f.write(i["data"])
+
## Create the default config
## Technically it's just another includes.chroot entry,
## but it's special enough to warrant making it easier for flavor writers