[PATCH f17-branch 1/2] fix repo={hd,cdrom}:DEV:PATH (#810136)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Work around buggy splitsep, like commit 844c0c1 / bug #810005.
---
 dracut/parse-anaconda-repo.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dracut/parse-anaconda-repo.sh b/dracut/parse-anaconda-repo.sh
index 96de458..1e23c36 100755
--- a/dracut/parse-anaconda-repo.sh
+++ b/dracut/parse-anaconda-repo.sh
@@ -12,7 +12,8 @@ arg="repo"
 [ -n "$stage2" ] && arg="stage2" && repo="$stage2"
 
 if [ -n "$repo" ]; then
-    splitsep ":" "$repo" repotype rest
+    #splitsep ":" "$repo" repotype rest # FIXME: splitsep is buggy
+    repotype=${repo%%:*}; rest=${repo#$repotype:}
     case "$repotype" in
         http|https|ftp|nfs|nfs4|nfsiso)
             set_neednet; root="anaconda-net:$repo" ;;
-- 
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux