代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/dracut 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From fc613d0d2ca74a39bd76d4defc5bdf479e921272 Mon Sep 17 00:00:00 2001
From: gaoyi <[email protected]>
Date: Wed, 14 Aug 2019 07:22:22 -0400
Subject: [PATCH] check_vol_slaves_all must return 1 when lvm vgs failed
reason: when filter/global_filter is set in lvm.conf, lvm vgs may be
failed
Signed-off-by: gaoyi <[email protected]>
---
dracut-functions.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dracut-functions.sh b/dracut-functions.sh
index 7c408f8..c50d328 100755
--- a/dracut-functions.sh
+++ b/dracut-functions.sh
@@ -595,6 +595,12 @@ check_vol_slaves_all() {
# strip space
_vg="${_vg//[[:space:]]/}"
if [[ $_vg ]]; then
+ # when filter/global_filter is set, lvm may be failed
+ lvm lvs --noheadings -o vg_name $_vg 2>/dev/null 1>/dev/null
+ if [ $? -ne 0 ]; then
+ return 1
+ fi
+
for _pv in $(lvm vgs --noheadings -o pv_name "$_vg" 2>/dev/null)
do
check_block_and_slaves_all $1 $(get_maj_min $_pv)
--
2.19.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。