diff --git a/netboot/mk-s390image b/netboot/mk-s390image index 19214c0e..de8158c7 100755 --- a/netboot/mk-s390image +++ b/netboot/mk-s390image @@ -123,6 +123,11 @@ dobuild() echo "$cmd: File $i not found" >&2 return 1 fi + if [ ! -r "$i" ] + then + echo "$cmd: File $i cannot be read, no read permission" >&2 + return 1 + fi done if ! file -b -- "$(readlink -f -- "$kernel")" | grep "Linux S390" > /dev/null then