Skip to content

Commit

Permalink
Add some more verbose logs around LUKS size changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Oct 24, 2024
1 parent 5c9e344 commit ead95ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blivet/devices/luks.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ def _get_size(self):

def _set_size(self, newsize):
if not self.exists and not self.raw_device.exists:
log.debug("adjusting size of %s to %s to accommodate LUKS metadata",
self.raw_device.name,
newsize + self.raw_device.format._header_size)
self.raw_device.size = newsize + self.raw_device.format._header_size

# just run the StorageDevice._set_size to make sure we are in the format limits
Expand Down

0 comments on commit ead95ba

Please sign in to comment.