Projects
home:Eustace:branches:Eulaceura:Factory
dracut
_service:obs_scm:use-sleep-replace-check-sys-bl...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:use-sleep-replace-check-sys-block.patch of Package dracut
From c7f23ea749a9bb41552d3e0ce4c86d7919dfc2f4 Mon Sep 17 00:00:00 2001 From: gaoyi <gaoyi15@huawei.com> Date: Wed, 23 Oct 2019 12:57:01 -0400 Subject: [PATCH] use sleep replace check /sys/block --- modules.d/98dracut-systemd/dracut-initqueue.sh | 14 ++++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .0001-delete-MACHINE_ID-to-eliminate-difference-of-vmlinuz.patch.swp diff --git a/modules.d/98dracut-systemd/dracut-initqueue.sh b/modules.d/98dracut-systemd/dracut-initqueue.sh index c7d7888..f8c7e66 100755 --- a/modules.d/98dracut-systemd/dracut-initqueue.sh +++ b/modules.d/98dracut-systemd/dracut-initqueue.sh @@ -18,10 +18,16 @@ export RDRETRY if getarg 'skipbadscsi' -d 'skipbadscsi'; then sd_dir=/sys/block - while [ "`ls $sd_dir/`" = "" ] - do - sleep 1 - done + + wait_time=$(getargs 'skipbadscsi=') + if [ x"$wait_time" = x"skipbadscsi" ]; then + wait_time=15 + fi + if ! isdigit $wait_time; then + wait_time=15 + fi + + sleep $wait_time dev_num=0 for _sd_device in `ls $sd_dir/` -- 2.19.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2