Skip to content

Commit

Permalink
spec: make modules.img sparse
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
marmarek committed Aug 4, 2020
1 parent cd64806 commit 5e4c0bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e4c0bd

Please sign in to comment.