Skip to content

Commit

Permalink
rpm: do not fail if thin_pool_autoextend_threshold is not set
Browse files Browse the repository at this point in the history
In that case rely on a built-in default value (which is adjusted in the
qubes package).

QubesOS/qubes-issues#9402
  • Loading branch information
marmarek committed Aug 11, 2024
1 parent b96811b commit f29f3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpm_spec/core-dom0-linux.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit f29f3b1

Please sign in to comment.