We have a requirement for some test cases that the artifacts need to be modified (negative scenario) in order
to verify some scenarios. we are currently using postprocess under deploy action for this purpose.
As of part postprocess, we need to mount partitions of disk image and make some changes based on the requirement.
However, we are unable to mount the partitions using losetup command.
docker:
image: debian:bookworm
steps:
- apt-get update
- loop_dev=$(losetup -P -f --show image.wic)
- echo $loop_dev
The job failed with below error,
losetup -P -f --show image.wic
losetup: cannot find an unused loop device
It looks like the docker container needs root privileges. It works when we run locally with "privileged:true".
Is there any way we can pass "privileged: true" option to docker image through LAVA job definitions?
Any inputs regarding this matter are highly appreciated.
Hello,
I'm trying to verify secure boot on LAVA lab, I've verified the positive case of secure boot and confirmed the secure boot is enabled from the boot logs (kernel-start-message = "EFI stub: UEFI Secure Boot is enabled.").
Next, I would like to verify the negative test case as well by tampering the secure boot image where I expect the image boot shall fail.
Is there way in LAVA to make the job complete(e.g. waiting for specific message in boot logs like "Can't find image information. ") even though the image fails to boot on the DUT?
Ref. https://lava.ciplatform.org/scheduler/job/1236667#L81