From f29f3b16492eb3a5da720fb2df9086fbd172eaeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 12 Aug 2024 01:57:44 +0200 Subject: [PATCH] rpm: do not fail if thin_pool_autoextend_threshold is not set In that case rely on a built-in default value (which is adjusted in the qubes package). QubesOS/qubes-issues#9402 --- rpm_spec/core-dom0-linux.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm_spec/core-dom0-linux.spec.in b/rpm_spec/core-dom0-linux.spec.in index 212c20a..355da35 100644 --- a/rpm_spec/core-dom0-linux.spec.in +++ b/rpm_spec/core-dom0-linux.spec.in @@ -224,7 +224,7 @@ fi # setup thinpool autoextend if [ -e /etc/lvm/lvm.conf ]; then - tpool_threshold_line_value=$(grep -n -Po '^[^#]thin_pool_autoextend_threshold[ \t]*=[ \t]*\K\d+' /etc/lvm/lvm.conf) + tpool_threshold_line_value=$(grep -n -Po '^[^#]thin_pool_autoextend_threshold[ \t]*=[ \t]*\K\d+' /etc/lvm/lvm.conf || :) if [ -n "$tpool_threshold_line_value" ]; then tpool_threshold_line="$(echo "$tpool_threshold_line_value" | cut -d':' -f1)" tpool_threshold_value="$(echo "$tpool_threshold_line_value" | cut -d':' -f2)"