1 Star 0 Fork 106

bury_8712/anaconda

forked from src-openEuler/anaconda 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-import-new-BlockDev.patch 4.68 KB
一键复制 编辑 原始数据 按行查看 历史
sun_hai 提交于 2024-02-28 11:38 . import new BlockDev
From 765938409daeeacf1faf3c2695c68a85f0b30b4d Mon Sep 17 00:00:00 2001
From: s30028044 <[email protected]>
Date: Wed, 28 Feb 2024 11:33:54 +0800
Subject: [PATCH] import new BlockDev
---
pyanaconda/modules/storage/checker/utils.py | 2 +-
pyanaconda/modules/storage/dasd/discover.py | 2 +-
pyanaconda/modules/storage/dasd/format.py | 2 +-
pyanaconda/modules/storage/devicetree/fsset.py | 2 +-
pyanaconda/modules/storage/initialization.py | 2 +-
pyanaconda/modules/storage/installation.py | 2 +-
pyanaconda/modules/storage/nvdimm/nvdimm.py | 2 +-
pyanaconda/modules/storage/zfcp/discover.py | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/pyanaconda/modules/storage/checker/utils.py b/pyanaconda/modules/storage/checker/utils.py
index 9ccd398..74aedae 100644
--- a/pyanaconda/modules/storage/checker/utils.py
+++ b/pyanaconda/modules/storage/checker/utils.py
@@ -16,7 +16,7 @@
# Red Hat, Inc.
#
import gi
-gi.require_version("BlockDev", "2.0")
+gi.require_version("BlockDev", "3.0")
from gi.repository import BlockDev as blockdev
from collections import defaultdict
diff --git a/pyanaconda/modules/storage/dasd/discover.py b/pyanaconda/modules/storage/dasd/discover.py
index 06e3b39..d1de38e 100644
--- a/pyanaconda/modules/storage/dasd/discover.py
+++ b/pyanaconda/modules/storage/dasd/discover.py
@@ -18,7 +18,7 @@
# Red Hat, Inc.
#
import gi
-gi.require_version("BlockDev", "2.0")
+gi.require_version("BlockDev", "3.0")
from gi.repository import BlockDev as blockdev
from pyanaconda.core.regexes import DASD_DEVICE_NUMBER
diff --git a/pyanaconda/modules/storage/dasd/format.py b/pyanaconda/modules/storage/dasd/format.py
index 7ae389b..48d5c46 100644
--- a/pyanaconda/modules/storage/dasd/format.py
+++ b/pyanaconda/modules/storage/dasd/format.py
@@ -21,7 +21,7 @@ from pyanaconda.modules.common.task import Task
from pyanaconda.anaconda_loggers import get_module_logger
import gi
-gi.require_version("BlockDev", "2.0")
+gi.require_version("BlockDev", "3.0")
from gi.repository import BlockDev as blockdev
log = get_module_logger(__name__)
diff --git a/pyanaconda/modules/storage/devicetree/fsset.py b/pyanaconda/modules/storage/devicetree/fsset.py
index 0d151d3..4db3759 100644
--- a/pyanaconda/modules/storage/devicetree/fsset.py
+++ b/pyanaconda/modules/storage/devicetree/fsset.py
@@ -20,7 +20,7 @@ import shutil
import time
import gi
-gi.require_version("BlockDev", "2.0")
+gi.require_version("BlockDev", "3.0")
from gi.repository import BlockDev as blockdev
from blivet.devices import NoDevice, DirectoryDevice, NFSDevice, FileDevice, MDRaidArrayDevice, \
diff --git a/pyanaconda/modules/storage/initialization.py b/pyanaconda/modules/storage/initialization.py
index bb5ad24..17b8274 100644
--- a/pyanaconda/modules/storage/initialization.py
+++ b/pyanaconda/modules/storage/initialization.py
@@ -26,7 +26,7 @@ from pyanaconda.anaconda_logging import program_log_lock
from pyanaconda.core.configuration.anaconda import conf
import gi
-gi.require_version("BlockDev", "2.0")
+gi.require_version("BlockDev", "3.0")
from gi.repository import BlockDev as blockdev
__all__ = ["enable_installer_mode"]
diff --git a/pyanaconda/modules/storage/installation.py b/pyanaconda/modules/storage/installation.py
index 05d91f3..8f82734 100644
--- a/pyanaconda/modules/storage/installation.py
+++ b/pyanaconda/modules/storage/installation.py
@@ -36,7 +36,7 @@ from pyanaconda.modules.common.errors.installation import StorageInstallationErr
from pyanaconda.modules.common.task import Task
import gi
-gi.require_version("BlockDev", "2.0")
+gi.require_version("BlockDev", "3.0")
from gi.repository import BlockDev as blockdev
log = get_module_logger(__name__)
diff --git a/pyanaconda/modules/storage/nvdimm/nvdimm.py b/pyanaconda/modules/storage/nvdimm/nvdimm.py
index f9aef8b..1aa6295 100644
--- a/pyanaconda/modules/storage/nvdimm/nvdimm.py
+++ b/pyanaconda/modules/storage/nvdimm/nvdimm.py
@@ -32,7 +32,7 @@ from pyanaconda.modules.storage.nvdimm.nvdimm_interface import NVDIMMInterface
from pyanaconda.modules.storage.nvdimm.reconfigure import NVDIMMReconfigureTask
import gi
-gi.require_version("BlockDev", "2.0")
+gi.require_version("BlockDev", "3.0")
from gi.repository import BlockDev as blockdev
log = get_module_logger(__name__)
diff --git a/pyanaconda/modules/storage/zfcp/discover.py b/pyanaconda/modules/storage/zfcp/discover.py
index 231e097..796f7c5 100644
--- a/pyanaconda/modules/storage/zfcp/discover.py
+++ b/pyanaconda/modules/storage/zfcp/discover.py
@@ -18,7 +18,7 @@
# Red Hat, Inc.
#
import gi
-gi.require_version("BlockDev", "2.0")
+gi.require_version("BlockDev", "3.0")
from gi.repository import BlockDev as blockdev
from blivet.zfcp import zfcp
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bury_8712/anaconda.git
[email protected]:bury_8712/anaconda.git
bury_8712
anaconda
anaconda
master

搜索帮助