m/t/installer: deflake by silencing kernel logs
The installer test was failing due to the success flag getting broken
in two by the kernel logs, like this:
>TestOS launched successfully! _TESTOS_LAUNCH_SUC[ 0.963289] kvm:
>exiting hardware virtualizationCESS_
This change addresses this problem by setting an adequate loglevel for
both the installer and testos kernels.
m/t/installer/BUILD.bazel now defines its own unified kernel image
target with a custom kernel cmdline needed for test purposes.
Change-Id: I43547b6c81f8a1ebc4facb841a600b155af581df
Reviewed-on: https://review.monogon.dev/c/monogon/+/464
Reviewed-by: Sergiusz Bazanski <serge@monogon.tech>
diff --git a/metropolis/test/installer/testos/BUILD b/metropolis/test/installer/testos/BUILD
index c6ced2b..55fbd47 100644
--- a/metropolis/test/installer/testos/BUILD
+++ b/metropolis/test/installer/testos/BUILD
@@ -12,7 +12,7 @@
efi_unified_kernel_image(
name = "kernel_efi",
- cmdline = "console=ttyS0 root=PARTLABEL=METROPOLIS-SYSTEM rootfstype=erofs init=/init",
+ cmdline = "loglevel=0 console=ttyS0 root=PARTLABEL=METROPOLIS-SYSTEM rootfstype=erofs init=/init",
kernel = "//third_party/linux",
)