Fix qubes.storage.file _remove_if_exists
This commit is contained in:
parent
12745a4860
commit
4db84c42a6
@ -513,7 +513,7 @@ def _reset_volume(volume):
|
|||||||
|
|
||||||
assert volume.size
|
assert volume.size
|
||||||
|
|
||||||
_remove_if_exists(volume)
|
_remove_if_exists(volume.path)
|
||||||
|
|
||||||
with open(volume.path, "w") as f_volatile:
|
with open(volume.path, "w") as f_volatile:
|
||||||
f_volatile.truncate(volume.size)
|
f_volatile.truncate(volume.size)
|
||||||
|
Loading…
Reference in New Issue
Block a user