From c52559bc094c75cc9508066ecddb362b4eaaab74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Mon, 5 Feb 2024 13:47:04 +0000 Subject: [PATCH 1/6] ubuntu-core-initramfs: change name of plymouth plugin Upstream has changed the name of the freetype plugin from label-ft to label-freetype. --- bin/ubuntu-core-initramfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ubuntu-core-initramfs b/bin/ubuntu-core-initramfs index a5c31a49..5062e0ab 100755 --- a/bin/ubuntu-core-initramfs +++ b/bin/ubuntu-core-initramfs @@ -419,7 +419,7 @@ def install_misc(dest_dir): "/usr/bin/partx", "/usr/bin/plymouth", "/usr/bin/unsquashfs", - "/usr/lib/" + deb_arch + "/plymouth/label-ft.so", + "/usr/lib/" + deb_arch + "/plymouth/label-freetype.so", "/usr/lib/" + deb_arch + "/plymouth/script.so", "/usr/lib/" + deb_arch + "/plymouth/two-step.so", "/usr/sbin/depmod", @@ -446,7 +446,7 @@ def install_misc(dest_dir): proc_env = os.environ.copy() proc_env["LD_PRELOAD"] = "" to_resolve = [ - "/usr/lib/" + deb_arch + "/plymouth/label-ft.so", + "/usr/lib/" + deb_arch + "/plymouth/label-freetype.so", "/usr/lib/" + deb_arch + "/plymouth/script.so", "/usr/lib/" + deb_arch + "/plymouth/two-step.so", ] From dbc53b04be7d7e16c42a97f328cd268fd704161a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Tue, 6 Feb 2024 08:18:55 +0000 Subject: [PATCH 2/6] spread: use now available 24.04 image --- spread.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spread.yaml b/spread.yaml index f7d4954b..aa9fc7ad 100644 --- a/spread.yaml +++ b/spread.yaml @@ -20,8 +20,7 @@ backends: halt-timeout: 2h systems: - ubuntu-24.04-64: - # FIXME: switch to 24.04 - image: ubuntu-23.10-64 + image: ubuntu-24.04-64 storage: 20G qemu-nested: From f719cad5c39a54a2a428f60e1342f2b763df3991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Tue, 6 Feb 2024 09:46:30 +0000 Subject: [PATCH 3/6] tests/lib: adapt to new OVMF paths on 24.04 --- tests/lib/nested.sh | 4 ++-- tests/lib/prepare-utils.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/lib/nested.sh b/tests/lib/nested.sh index a07daf6c..c0298859 100644 --- a/tests/lib/nested.sh +++ b/tests/lib/nested.sh @@ -122,8 +122,8 @@ start_nested_core_vm_unit(){ fi mkdir -p "${WORK_DIR}/image/" - cp -f "${OVMF_VARS_D}/OVMF_VARS${OVMF_VARS}.fd" "${WORK_DIR}/image/OVMF_VARS${OVMF_VARS}.fd" - PARAM_BIOS="-drive file=/usr/share/OVMF/OVMF_CODE${OVMF_CODE}.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=${WORK_DIR}/image/OVMF_VARS${OVMF_VARS}.fd,if=pflash,format=raw" + cp -f "${OVMF_VARS_D}/OVMF_VARS_4M${OVMF_VARS}.fd" "${WORK_DIR}/image/OVMF_VARS_4M${OVMF_VARS}.fd" + PARAM_BIOS="-drive file=/usr/share/OVMF/OVMF_CODE_4M${OVMF_CODE}.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=${WORK_DIR}/image/OVMF_VARS_4M${OVMF_VARS}.fd,if=pflash,format=raw" PARAM_MACHINE="-machine q35${ATTR_KVM} -global ICH9-LPC.disable_s3=1" # Unfortunately the test-snapd-swtpm snap does not work correctly in lxd diff --git a/tests/lib/prepare-utils.sh b/tests/lib/prepare-utils.sh index 32751656..c6b3fbf6 100644 --- a/tests/lib/prepare-utils.sh +++ b/tests/lib/prepare-utils.sh @@ -77,8 +77,8 @@ start_snapd_core_vm() { fi mkdir -p "${work_dir}/image/" - cp -f "/usr/share/OVMF/OVMF_VARS.fd" "${work_dir}/image/OVMF_VARS.fd" - PARAM_BIOS="-drive file=/usr/share/OVMF/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=${work_dir}/image/OVMF_VARS.fd,if=pflash,format=raw" + cp -f "/usr/share/OVMF/OVMF_VARS_4M.fd" "${work_dir}/image/OVMF_VARS_4M.fd" + PARAM_BIOS="-drive file=/usr/share/OVMF/OVMF_CODE_4M.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=${work_dir}/image/OVMF_VARS_4M.fd,if=pflash,format=raw" PARAM_MACHINE="-machine q35${ATTR_KVM} -global ICH9-LPC.disable_s3=1" PARAM_IMAGE="-drive file=${work_dir}/pc.img,cache=none,format=raw,id=disk1,if=none -device virtio-blk-pci,drive=disk1,bootindex=1" From c64a3f01ad2628c45aea164aafb9ab2ee13d4d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Tue, 6 Feb 2024 19:01:02 +0000 Subject: [PATCH 4/6] snakeoil: update OVMF_VARS to qemu format in noble --- snakeoil/OVMF_VARS.snakeoil.fd | Bin 131072 -> 0 bytes snakeoil/OVMF_VARS_4M.snakeoil.fd | Bin 0 -> 540672 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 snakeoil/OVMF_VARS.snakeoil.fd create mode 100644 snakeoil/OVMF_VARS_4M.snakeoil.fd diff --git a/snakeoil/OVMF_VARS.snakeoil.fd b/snakeoil/OVMF_VARS.snakeoil.fd deleted file mode 100644 index e9d02bf8ac5b6fca542e7ec85eeafbe0d2f8cb62..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 131072 zcmeI)3tSad9>DQ4+{;T8RIZv9hPtT*xmWU$&nU#thZlp+7cZJHJLb)2TlMrD64yrvH$B0_kpp@aUo(qdqVXj;!!1zFt*idA z4HJVe1v{Iic7<}b2vm8^;>^Sn-_#;u94sUMP z%y0OU!(|@nGS3lWSV@XvnO|qoqJq5Cq9$@wWjt~E@wsOoN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k z1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs z0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZ zfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&U zAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C7 z2oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N z0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXFe69lj E4@l${00000 literal 0 HcmV?d00001 From 717aa917059519747093e3c273f5a21e66b1144d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Tue, 6 Feb 2024 19:35:06 +0000 Subject: [PATCH 5/6] tests/lib: use now channel 24 for pc-kernel --- tests/lib/prepare-utils.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/lib/prepare-utils.sh b/tests/lib/prepare-utils.sh index c6b3fbf6..3ef0d412 100644 --- a/tests/lib/prepare-utils.sh +++ b/tests/lib/prepare-utils.sh @@ -152,8 +152,7 @@ download_core_initrd_snaps() { curl -o ubuntu-core-amd64-dangerous.model https://raw.githubusercontent.com/snapcore/models/master/ubuntu-core-24-amd64-dangerous.model # download neccessary images - # FIXME: switch to 24/ channel - snap download pc-kernel --channel=22/${snap_branch} --basename=upstream-pc-kernel + snap download pc-kernel --channel=24/${snap_branch} --basename=upstream-pc-kernel snap download pc --channel=24/${snap_branch} --basename=upstream-pc-gadget snap download snapd --channel=${snap_branch} --basename=upstream-snapd snap download core24 --channel=${snap_branch} --basename=upstream-core24 From 431aa2ef9ea35482e3b10ef7b12ee33dba57517c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Tue, 6 Feb 2024 19:41:38 +0000 Subject: [PATCH 6/6] tests/lib/prepare-utils.sh: make tweaks script more robust As ssh might not be active yet when we ask it to reload its configuration. This provoked an initialization error so the "Initialize system state" change had to be retried, delaying the test around 7 minutes. --- tests/lib/prepare-utils.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lib/prepare-utils.sh b/tests/lib/prepare-utils.sh index 3ef0d412..7a5e2c48 100644 --- a/tests/lib/prepare-utils.sh +++ b/tests/lib/prepare-utils.sh @@ -326,7 +326,8 @@ echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/99-ubuntu-user sed -i 's/\#\?\(PermitRootLogin\|PasswordAuthentication\)\>.*/\1 yes/' /etc/ssh/sshd_config echo "MaxAuthTries 120" >> /etc/ssh/sshd_config grep '^PermitRootLogin yes' /etc/ssh/sshd_config -systemctl reload ssh +# ssh might not be active yet so the command might fail +systemctl reload ssh || true print_system "done setting up ssh for spread test user"