summaryrefslogtreecommitdiff
path: root/src/sysext
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-01-17 18:50:59 +0100
committerLennart Poettering <lennart@poettering.net>2023-01-18 10:47:17 +0100
commit22ee78a8987f29e7f837efab86ed090ab78c1170 (patch)
treec2de760025b5f30bc7b27ecd48bfa423d1e3960d /src/sysext
parent05c4c59ff127668ddaa85f0a9fd67cee3c41ce00 (diff)
downloadsystemd-22ee78a8987f29e7f837efab86ed090ab78c1170.tar.gz
loop-util: always tell kernel explicitly about loopback sector size
Let's not leave the sector size unspecified: either set a user supplied value, or auto-detect the right size by probing the disk image accordingly.
Diffstat (limited to 'src/sysext')
-rw-r--r--src/sysext/sysext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sysext/sysext.c b/src/sysext/sysext.c
index 4fbc5e877e..0c4391991b 100644
--- a/src/sysext/sysext.c
+++ b/src/sysext/sysext.c
@@ -540,6 +540,7 @@ static int merge_subprocess(Hashmap *images, const char *workspace) {
r = loop_device_make_by_path(
img->path,
O_RDONLY,
+ /* sector_size= */ UINT32_MAX,
FLAGS_SET(flags, DISSECT_IMAGE_NO_PARTITION_TABLE) ? 0 : LO_FLAGS_PARTSCAN,
LOCK_SH,
&d);