代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/dracut 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 816a7dbff7128b4b87ea8d6abd2caf564f8f3502 Mon Sep 17 00:00:00 2001
From: gaoyi <[email protected]>
Date: Fri, 18 Oct 2019 10:42:55 -0400
Subject: [PATCH] skip the broken sd in initqueue
---
.../98dracut-systemd/dracut-initqueue.sh | 25 +++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/modules.d/98dracut-systemd/dracut-initqueue.sh b/modules.d/98dracut-systemd/dracut-initqueue.sh
index 3ddc236..c7d7888 100755
--- a/modules.d/98dracut-systemd/dracut-initqueue.sh
+++ b/modules.d/98dracut-systemd/dracut-initqueue.sh
@@ -16,6 +16,31 @@ RDRETRY=${RDRETRY:-180}
RDRETRY=$(($RDRETRY*2))
export RDRETRY
+if getarg 'skipbadscsi' -d 'skipbadscsi'; then
+ sd_dir=/sys/block
+ while [ "`ls $sd_dir/`" = "" ]
+ do
+ sleep 1
+ done
+
+ dev_num=0
+ for _sd_device in `ls $sd_dir/`
+ do
+ blkid /dev/$_sd_device >/dev/null 2>&1 &
+ ((dev_num++))
+ done
+
+ sleep $dev_num
+
+ for _sd_device in `ps -eo cmd,stat | grep -Po "(?<=blkid /dev/).*(?=D)"`
+ do
+ echo offline > $sd_dir/$_sd_device/device/state
+ echo "Dev $_sd_device maybe broken, set it offline" > /dev/kmsg
+ done
+
+ udevadm settle --timeout=30
+fi
+
main_loop=0
export main_loop
--
2.19.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。