From e34f436433cfce10d01d31569f74f0ad96d5a938 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sat, 29 Jun 2024 15:36:28 +0200 Subject: [PATCH] repart: Don't set filesystem sector size to 512 We want to use 4K as the default sector size for filesystems so they don't have to be regenerated to work on 512, 2048 or 4096 sector sizes. (cherry picked from commit d34361149f897eac5c6a41854fa4edca4804b49b) --- src/partition/repart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partition/repart.c b/src/partition/repart.c index 7147e3065e..e88e9cd03d 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -2562,7 +2562,7 @@ static int context_load_partition_table(Context *context) { if (IN_SET(arg_empty, EMPTY_REQUIRE, EMPTY_FORCE, EMPTY_CREATE) && S_ISREG(st.st_mode)) /* Don't probe sector size from partition table if we are supposed to start from an empty disk */ - fs_secsz = ssz = 512; + ssz = 512; else { /* Auto-detect sector size if not specified. */ r = probe_sector_size_prefer_ioctl(context->backing_fd, &ssz); -- 2.25.1