diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-01-17 18:50:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-01-18 10:47:17 +0100 |
commit | 22ee78a8987f29e7f837efab86ed090ab78c1170 (patch) | |
tree | c2de760025b5f30bc7b27ecd48bfa423d1e3960d /src/sysext/sysext.c | |
parent | 05c4c59ff127668ddaa85f0a9fd67cee3c41ce00 (diff) | |
download | systemd-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/sysext.c')
-rw-r--r-- | src/sysext/sysext.c | 1 |
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); |