All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] base/dracut-lib.sh: remove bashism
@ 2015-02-24 19:28 Alexander Tsoy
       [not found] ` <E1YQLG5-00009v-BS-C3g8GgeTu50ox3rIn2DAYQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Tsoy @ 2015-02-24 19:28 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

---
 modules.d/99base/dracut-lib.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
index 079c9a2..fd627dc 100755
--- a/modules.d/99base/dracut-lib.sh
+++ b/modules.d/99base/dracut-lib.sh
@@ -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"
-- 
2.0.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Dracut GitHub] Patchset imported to github
       [not found] ` <E1YQLG5-00009v-BS-C3g8GgeTu50ox3rIn2DAYQ@public.gmane.org>
@ 2015-03-26 15:38   ` Dracut GitHub Import Bot
  0 siblings, 0 replies; 2+ messages in thread
From: Dracut GitHub Import Bot @ 2015-03-26 15:38 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

Patchset imported to github.
Pull request:
<https://github.com/haraldh/dracut/compare/master...dracut-mailing-devs:E1YQLG5-00009v-BS@puleglot.ru>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-26 15:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-24 19:28 [PATCH] base/dracut-lib.sh: remove bashism Alexander Tsoy
     [not found] ` <E1YQLG5-00009v-BS-C3g8GgeTu50ox3rIn2DAYQ@public.gmane.org>
2015-03-26 15:38   ` [Dracut GitHub] Patchset imported to github Dracut GitHub Import Bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.