base/dracut-lib.sh: remove bashism
PATCH 1/1 base/dracut-lib.sh: remove bashism
--- modules.d/99base/dracut-lib.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
modules.d/99base/dracut-lib.sh +3 -1
@@ -886,7 +886,9 @@ dev_unit_name() dev="${dev##/}" dev="$(str_replace "$dev" '\' '\x5c')" dev="$(str_replace "$dev" '-' '\x2d')" - dev=${dev/#\./\\x2e} + if [ "${dev##.}" != "$dev" ]; then + dev="\x2e${dev##.}" + fi dev="$(str_replace "$dev" '/' '-')" printf -- "%s" "$dev"
Signature · 1 line
2.0.5
A message that is not in the archive (sent off-list or not yet received): [email protected]
[Dracut GitHub] Patchset imported to github
Patchset imported to github.
Pull request:
<https://github.com/haraldh/dracut/compare/master...dracut-mailing-devs:[email protected]>