From f9e800805bb68253d6ff5d1fa3340a8998ced82d Mon Sep 17 00:00:00 2001 From: Harald Sitter Date: Sun, 7 Apr 2024 17:30:47 +0200 Subject: [PATCH] overlay: check for block device strangely enough block devices are block devices and not regular files ;) --- mkosi.extra/usr/bin/_kdeos-overlay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkosi.extra/usr/bin/_kdeos-overlay b/mkosi.extra/usr/bin/_kdeos-overlay index b4dd9d6..2754277 100755 --- a/mkosi.extra/usr/bin/_kdeos-overlay +++ b/mkosi.extra/usr/bin/_kdeos-overlay @@ -5,7 +5,7 @@ set -ex rootdisk=/dev/disk/by-partlabel/KDEOS -if [ -r /dev/gpt-auto-root ]; then +if [ -b /dev/gpt-auto-root ]; then # When the partition was auto detected we can just use the auto-root device rootdisk=/dev/gpt-auto-root fi