Skip to content

Commit

Permalink
build-vm: Error out when initrd is not readable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adrianschroeter committed Jan 29, 2024
1 parent ca1163a commit afe06e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build-vm-kvm
Original file line number Diff line number Diff line change
Expand Up @@ -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*)
Expand Down

0 comments on commit afe06e9

Please sign in to comment.