devices/loopback: make setting sector_size meaningful

For the org.osbuild.loopback the user can set the sector size, but
it had no effect on the underlying loopback device. Let's make it
meaningful by passing along the given value to the underlying code.
This commit is contained in:
Dusty Mabe 2023-11-21 17:18:22 -05:00 committed by Simon de Vlieger
parent 677a874115
commit 0770eb0090
2 changed files with 5 additions and 4 deletions

View file

@ -82,6 +82,7 @@ class LoopbackService(devices.DeviceService):
setup=self.setup_loop,
offset=offset,
sizelimit=sizelimit,
blocksize=self.sector_size,
partscan=False,
autoclear=True)