From afe06e92c5f18dc959dbdb34f11471a89f4040db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 29 Jan 2024 10:12:45 +0100 Subject: [PATCH] build-vm: Error out when initrd is not readable Initrd of the system became only readable for root. So builds as user fail when no kernel-obs-build is used. We may should create an initrd. Maybe not on the fly, but via extra tooling. --- build-vm-kvm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-vm-kvm b/build-vm-kvm index cc8aa3292..e404d5477 100644 --- a/build-vm-kvm +++ b/build-vm-kvm @@ -232,6 +232,9 @@ vm_verify_options_kvm() { fi fi fi + if ! test -r "$vm_initrd" ; then + cleanup_and_exit 4 "Initrd file $vm_initrd is not readable." + fi case $kvm_device in virtio*)