From 5e4c0bde0626f4454b4760420cfef4b8ec405890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 4 Aug 2020 03:50:58 +0200 Subject: [PATCH] spec: make modules.img sparse The file is 1GB, but actual used space is about 200M. Make it a sparse file in %post script (rpm package does not preserve sparse files). --- kernel.spec.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel.spec.in b/kernel.spec.in index fab3b381..7ce13eb5 100644 --- a/kernel.spec.in +++ b/kernel.spec.in @@ -607,6 +607,9 @@ if [ "$current_default_package" = "%{name}-qubes-vm" ]; then type qubes-prefs &>/dev/null && qubes-prefs --set default-kernel %upstream_version-%plainrel fi +# make modules.img sparse (again) +fallocate --dig-holes %vm_install_dir/modules.img + exit 0 %preun qubes-vm