rpm: make old root.img unlink explicit

Co-authored-by: ttasket <tasket@openmailbox.org>
Closes #1
This commit is contained in:
Marek Marczykowski-Górecki 2018-12-02 16:42:48 +01:00
parent 8b6f0e0e1f
commit 3a04f2adaf
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -78,6 +78,7 @@ if command -v qvm-template-postprocess >/dev/null 2>&1; then
fi
echo "--> Processing the root.img... (this might take a while)"
rm -f %{dest_dir}/root.img
cat %{dest_dir}/root.img.part.* | tar --sparse -xf - -C %{dest_dir}
rm -f %{dest_dir}/root.img.part.*
chown root.qubes %{dest_dir}/root.img