fix: Check if ISO is writeable

This commit is contained in:
Kroese 2024-04-22 13:16:32 +02:00 committed by GitHub
parent 2a9b310bca
commit 05ebe7cde6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -344,7 +344,7 @@ startInstall() {
magic=$(dd if="$STORAGE/$BASE" seek=0 bs=1 count=1 status=none | tr -d '\000')
magic="$(printf '%s' "$magic" | od -A n -t x1 -v | tr -d ' \n')"
if [[ "$magic" == "16" ]]; then
if [[ "$magic" == "16" ]] || [ ! -w "$STORAGE/$BASE" ]; then
if hasDisk || [[ "$MANUAL" == [Yy1]* ]]; then
return 1