Skip to content

Commit b72d0d7

Browse files
pvalenajohannbg
authored andcommitted
fix(dracut.sh): do not fail on irregular files
If file is not a regular file (test -f), dracut.sh fails, which is unexpected change of behaviour. The workaround would be to create an empty file. Fixes: #1835
1 parent 897e5ef commit b72d0d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dracut.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ if [[ -z $conffile ]]; then
905905
else
906906
conffile="$dracutsysrootdir/etc/dracut.conf"
907907
fi
908-
elif [[ ! -f $conffile ]]; then
908+
elif [[ ! -e $conffile ]]; then
909909
printf "%s\n" "dracut: Configuration file '$conffile' not found." >&2
910910
exit 1
911911
fi

0 commit comments

Comments
 (0)