|
|
5fed29 |
From 462099a9137fb7997140360c07665a21615a0fea Mon Sep 17 00:00:00 2001
|
|
|
5fed29 |
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
|
|
|
5fed29 |
Date: Tue, 7 Jul 2020 13:19:02 +0200
|
|
|
5fed29 |
Subject: [PATCH] set allowed disk labels for s390x as standard ones (msdos +
|
|
|
5fed29 |
gpt) plus dasd
|
|
|
5fed29 |
|
|
|
5fed29 |
This will solve issues when a SCSI or NVMe disk with GPT partition table
|
|
|
5fed29 |
is used with a s390x machine (rhbz#1827066, rhbz#1854110).
|
|
|
5fed29 |
---
|
|
|
5fed29 |
blivet/formats/disklabel.py | 2 +-
|
|
|
5fed29 |
tests/formats_test/disklabel_test.py | 2 +-
|
|
|
5fed29 |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
5fed29 |
|
|
|
5fed29 |
diff --git a/blivet/formats/disklabel.py b/blivet/formats/disklabel.py
|
|
|
5fed29 |
index 3dcac12b..53e2c010 100644
|
|
|
5fed29 |
--- a/blivet/formats/disklabel.py
|
|
|
5fed29 |
+++ b/blivet/formats/disklabel.py
|
|
|
5fed29 |
@@ -230,7 +230,7 @@ def get_platform_label_types(cls):
|
|
|
5fed29 |
elif arch.is_efi() and not arch.is_aarch64():
|
|
|
5fed29 |
label_types = ["gpt", "msdos"]
|
|
|
5fed29 |
elif arch.is_s390():
|
|
|
5fed29 |
- label_types = ["msdos", "dasd"]
|
|
|
5fed29 |
+ label_types += ["dasd"]
|
|
|
5fed29 |
|
|
|
5fed29 |
return label_types
|
|
|
5fed29 |
|
|
|
5fed29 |
diff --git a/tests/formats_test/disklabel_test.py b/tests/formats_test/disklabel_test.py
|
|
|
5fed29 |
index 94f3775f..3068dc07 100644
|
|
|
5fed29 |
--- a/tests/formats_test/disklabel_test.py
|
|
|
5fed29 |
+++ b/tests/formats_test/disklabel_test.py
|
|
|
5fed29 |
@@ -95,7 +95,7 @@ def test_platform_label_types(self, arch):
|
|
|
5fed29 |
arch.is_arm.return_value = False
|
|
|
5fed29 |
|
|
|
5fed29 |
arch.is_s390.return_value = True
|
|
|
5fed29 |
- self.assertEqual(disklabel_class.get_platform_label_types(), ["msdos", "dasd"])
|
|
|
5fed29 |
+ self.assertEqual(disklabel_class.get_platform_label_types(), ["msdos", "gpt", "dasd"])
|
|
|
5fed29 |
arch.is_s390.return_value = False
|
|
|
5fed29 |
|
|
|
5fed29 |
def test_label_type_size_check(self):
|