Skip to content

Commit b800edd

Browse files
committed
fix(base): wait_for_dev quote shell variables
1 parent d353297 commit b800edd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules.d/99base/dracut-lib.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -908,11 +908,11 @@ wait_for_dev()
908908

909909
[ -e "${PREFIX}$hookdir/initqueue/finished/devexists-${_name}.sh" ] && return 0
910910

911-
printf '[ -e "%s" ]\n' $1 \
911+
printf '[ -e "%s" ]\n' "$1" \
912912
>> "${PREFIX}$hookdir/initqueue/finished/devexists-${_name}.sh"
913913
{
914-
printf '[ -e "%s" ] || ' $1
915-
printf 'warn "\"%s\" does not exist"\n' $1
914+
printf '[ -e "%s" ] || ' "$1"
915+
printf 'warn "\"%s\" does not exist"\n' "$1"
916916
} >> "${PREFIX}$hookdir/emergency/80-${_name}.sh"
917917

918918
set_systemd_timeout_for_dev $_noreload $1

0 commit comments

Comments
 (0)