mkosi: workaround autovt removal in SUSE spec

Follow-up for 072e72424b
This commit is contained in:
Luca Boccassi
2026-01-24 13:24:58 +00:00
parent acd5fd0a6d
commit c4fd3043ff
@@ -18,8 +18,10 @@ TS="${SOURCE_DATE_EPOCH:-$(date +%s)}"
# The openSUSE filelists hardcode the manpage compression extension. This causes rpmbuild errors since we
# disable manpage compression as the files cannot be found. Fix the issue by removing the compression
# extension.
# TODO: remove autovt@ removal when the upstream spec is updated
while read -r filelist; do
sed -E \
-e '/autovt@/d' \
-e 's/\.gz$//' \
"$filelist" >"/tmp/$(basename "$filelist")"
mount --bind "/tmp/$(basename "$filelist")" "$filelist"