* Changes of existing tools: dbginfo.sh: Add details on CPU-measurement dbginfo.sh: Add new crypto command dbginfo.sh: Add overview commands and crypto update dbginfo.sh: Adding kdump info dbginfo.sh: Removing outdated email references dbginfo.sh: Rework network section dbginfo.sh: Update copyright 2nd year pvimg: Add '--(enable|disable)-image-encryption' flags to 'pvimg create' pvimg: Add '--cck ' command line option and make '--comm-key' an alias pvimg: Add '--hdr-key' command line option to 'pvimg create' pvimg: Rename '--key' into '--hdr-key' and use '--key' as an alias (for 'pvimg info') pvsecret: Add support for retrievable secrets ziorep_config: Add PCHID field to adapter report ziorep_traffic: Add DEVBUSID column to traffic report ziorep_utilization: Add --fcp-device parameter to print virtual adapter report ziorep_utilization: Add PCHID column to physical adapter report ziorep_utilization: Now prints only physical adapter report by default ziorep_utilization: Swap Bus-ID and CHPID columns in virtual adapter report zipl/boot: Increase section size for eckd_mv dumper zkey: Add support for listing and importing protected virtualization secrets * Bug Fixes: chpstat: Fix invalid utilization data on older kernels opticsmon: Fix runaway loop in on_link_change() zipl: Update inline assembly for GCC 15 zipl_helper.device-mapper: Add missed step in logical device resolution - Revendored vendor.tar.gz - Removed obsolete patches: * s390-tools-01-zipl_helper.device-mapper-add-missed-step-in-logical.patch * s390-tools-02-zipl-src-fix-imprecise-check-that-file-is-on-specifi.patch * s390-tools-General-update-01.patch * s390-tools-General-update-02.patch * s390-tools-General-update-03.patch * s390-tools-General-update-04.patch * s390-tools-General-update-05.patch * s390-tools-General-update-06.patch * s390-tools-General-update-07.patch * s390-tools-General-update-08.patch * s390-tools-General-update-09.patch * s390-tools-General-update-10.patch * s390-tools-General-update-11.patch * s390-tools-General-update-12.patch * s390-tools-Additional-update-01.patch * s390-tools-Additional-update-02.patch * s390-tools-pvimg-info-command-01.patch * s390-tools-pvimg-info-command-02.patch * s390-tools-pvimg-info-command-03.patch * s390-tools-Support-unencrypted-SE-images-01.patch * s390-tools-pvimg-info-command-04.patch * s390-tools-pvimg-additional-01.patch * s390-tools-01-zkey-Add-support-for-retrieving-a-list-of-ultravisor-secrets.patch * s390-tools-02-zkey-Add-the--pvsecrets-list-command.patch * s390-tools-03-zkey-Add-PVSECRETS-AES-key-type.patch * s390-tools-04-zkey-Add-the-pvsecrets-import-command.patch * s390-tools-05-zkey-Reject-key-generation-and-APQN-association-for-PVSECRET-AES-keys.patch * s390-tools-06-zkey-Reject-re-enciphering-of-PVSECRET-AES-keys.patch * s390-tools-07-zkey-Support-validation-of-key-of-type-PVSECRET-AES.patch * s390-tools-08-rust-pvimg-Fix-flag-parsing-for-allowing-dump.patch * s390-tools-09-rust-pvimg-Document-the-change-from--comm-key-to--cck.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=249
68 lines
2.0 KiB
Diff
68 lines
2.0 KiB
Diff
From 2d26a63806d2847f549c06276070a636a61bcb80 Mon Sep 17 00:00:00 2001
|
|
From: Eduard Shishkin <edward6@linux.ibm.com>
|
|
Date: Wed, 4 Dec 2024 13:37:46 +0100
|
|
Subject: [PATCH s390-tools] zipl_helper.device-mapper: add missed step in
|
|
logical device resolution
|
|
|
|
This fixes 670bf3e
|
|
|
|
Preparing a loop device for IPL by zipl tool, using its partition as
|
|
zipl target, leads to inconsistent installation setup. The problem is in
|
|
a missed step in the procedure of logical device resolution performed
|
|
by the script zipl_helper.device-mapper:
|
|
|
|
\# lsblk
|
|
|
|
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
|
|
loop0 7:0 0 5G 0 loop
|
|
|-loop0p1 253:15 0 128M 0 part
|
|
`-loop0p2 253:16 0 4.9G 0 part /mnt
|
|
|
|
\# ./zipl_helper.device-mapper 253:16
|
|
|
|
Expected result:
|
|
|
|
targetbase=7:0
|
|
targettype=SCSI
|
|
targetblocksize=4096
|
|
targetoffset=32784
|
|
|
|
Actual result:
|
|
|
|
targetbase=253:16
|
|
targettype=SCSI
|
|
targetblocksize=4096
|
|
targetoffset=32784
|
|
|
|
The fixup adds a missed resolution step.
|
|
|
|
Reference-ID: LTC210771
|
|
Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com>
|
|
---
|
|
zipl/src/zipl_helper.device-mapper.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/zipl/src/zipl_helper.device-mapper.c b/zipl/src/zipl_helper.device-mapper.c
|
|
index aca52be1..918c5aba 100644
|
|
--- a/zipl/src/zipl_helper.device-mapper.c
|
|
+++ b/zipl/src/zipl_helper.device-mapper.c
|
|
@@ -1306,13 +1306,13 @@ static int complete_physical_device(struct physical_device *pd, dev_t *base_dev)
|
|
*base_dev = base_entry->dev.dev;
|
|
} else {
|
|
/*
|
|
- * In this case base device is the uppermost logical
|
|
+ * In this case base device is the uppermost
|
|
* device which provides access to boot sectors
|
|
*/
|
|
base_entry = find_base_entry(pd->dmpath, dc->bootsectors);
|
|
if (!base_entry)
|
|
return -1;
|
|
- *base_dev = base_entry->dev.dev;
|
|
+ *base_dev = first_device_by_target_data(base_entry->target);
|
|
}
|
|
/* Check for valid offset of filesystem */
|
|
if ((pd->offset % (dc->blocksize / SECTOR_SIZE)) != 0) {
|
|
--
|
|
2.39.0
|
|
|