forked from pool/util-linux
Accepting request 1098476 from home:favogt:boo1213227
- Add patch to detect MD array as container of LUKS properly (boo#1213227, gh#util-linux/util-linux#2373): * 0001-Revert-libblkid-try-LUKS2-first-when-probing.patch OBS-URL: https://build.opensuse.org/request/show/1098476 OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=520
This commit is contained in:
parent
b86ebe4d2d
commit
0083c709c8
43
0001-Revert-libblkid-try-LUKS2-first-when-probing.patch
Normal file
43
0001-Revert-libblkid-try-LUKS2-first-when-probing.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
From 93ba7961779789217a1f814ce3110ff8c040c8c3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Fabian Vogt <fvogt@suse.de>
|
||||||
|
Date: Wed, 12 Jul 2023 15:48:27 +0200
|
||||||
|
Subject: [PATCH] Revert "libblkid: try LUKS2 first when probing"
|
||||||
|
|
||||||
|
mdadm superblocks before 1.1 are placed at the end of the device, which
|
||||||
|
means that the data contained inside the array starts at offset 0. For
|
||||||
|
LUKS inside MD, blkid falsely detects this as plain LUKS instead of a
|
||||||
|
linux_raid_member. This causes e.g. dracut to not assemble the array
|
||||||
|
during boot and system startup fails.
|
||||||
|
|
||||||
|
This reverts commit b8889c0a214aeb3dd47bf1ab280fe5534b64d2aa.
|
||||||
|
---
|
||||||
|
libblkid/src/superblocks/superblocks.c | 6 +-----
|
||||||
|
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libblkid/src/superblocks/superblocks.c b/libblkid/src/superblocks/superblocks.c
|
||||||
|
index fb0392707..c7789a15b 100644
|
||||||
|
--- a/libblkid/src/superblocks/superblocks.c
|
||||||
|
+++ b/libblkid/src/superblocks/superblocks.c
|
||||||
|
@@ -94,11 +94,6 @@ static int blkid_probe_set_usage(blkid_probe pr, int usage);
|
||||||
|
*/
|
||||||
|
static const struct blkid_idinfo *idinfos[] =
|
||||||
|
{
|
||||||
|
- /* In case the volume is locked with OPAL we are going to get
|
||||||
|
- * an I/O error when reading past the LUKS header, so try it
|
||||||
|
- * first. */
|
||||||
|
- &luks_idinfo,
|
||||||
|
-
|
||||||
|
/* RAIDs */
|
||||||
|
&linuxraid_idinfo,
|
||||||
|
&ddfraid_idinfo,
|
||||||
|
@@ -124,6 +119,7 @@ static const struct blkid_idinfo *idinfos[] =
|
||||||
|
&snapcow_idinfo,
|
||||||
|
&verity_hash_idinfo,
|
||||||
|
&integrity_idinfo,
|
||||||
|
+ &luks_idinfo,
|
||||||
|
&vmfs_volume_idinfo,
|
||||||
|
&ubi_idinfo,
|
||||||
|
&vdo_idinfo,
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 13 06:33:54 UTC 2023 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Add patch to detect MD array as container of LUKS properly
|
||||||
|
(boo#1213227, gh#util-linux/util-linux#2373):
|
||||||
|
* 0001-Revert-libblkid-try-LUKS2-first-when-probing.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 10 13:29:25 UTC 2023 - Fabian Vogt <fvogt@suse.com>
|
Mon Jul 10 13:29:25 UTC 2023 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
@ -114,6 +114,8 @@ Patch4: util-linux-bash-completion-su-chsh-l.patch
|
|||||||
Patch5: util-linux-fix-tests-with-64k-pagesize.patch
|
Patch5: util-linux-fix-tests-with-64k-pagesize.patch
|
||||||
# https://github.com/util-linux/util-linux/pull/2331
|
# https://github.com/util-linux/util-linux/pull/2331
|
||||||
Patch6: 0001-libmount-fix-sync-options-between-context-and-fs-str.patch
|
Patch6: 0001-libmount-fix-sync-options-between-context-and-fs-str.patch
|
||||||
|
# https://github.com/util-linux/util-linux/pull/2373
|
||||||
|
Patch7: 0001-Revert-libblkid-try-LUKS2-first-when-probing.patch
|
||||||
BuildRequires: audit-devel
|
BuildRequires: audit-devel
|
||||||
BuildRequires: bc
|
BuildRequires: bc
|
||||||
BuildRequires: binutils-devel
|
BuildRequires: binutils-devel
|
||||||
|
Loading…
Reference in New Issue
Block a user