From b800edd69817b5e46d5f240b96d3b3648267ea21 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 8 Mar 2021 10:14:36 +0100 Subject: [PATCH] fix(base): wait_for_dev quote shell variables --- modules.d/99base/dracut-lib.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index b9be2b175c..0a53eb8b8f 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -908,11 +908,11 @@ wait_for_dev() [ -e "${PREFIX}$hookdir/initqueue/finished/devexists-${_name}.sh" ] && return 0 - printf '[ -e "%s" ]\n' $1 \ + printf '[ -e "%s" ]\n' "$1" \ >> "${PREFIX}$hookdir/initqueue/finished/devexists-${_name}.sh" { - printf '[ -e "%s" ] || ' $1 - printf 'warn "\"%s\" does not exist"\n' $1 + printf '[ -e "%s" ] || ' "$1" + printf 'warn "\"%s\" does not exist"\n' "$1" } >> "${PREFIX}$hookdir/emergency/80-${_name}.sh" set_systemd_timeout_for_dev $_noreload $1