[PATCH f17-branch 2/2] Fix repo={http,ftp,nfs} (#810005)

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

 



It turns out that dracut-lib's "splitsep" doesn't work as documented.
This line:
    splitsep ":" "anaconda-net:http://nyan.cat/"; prefix repo
yields "repo=http", with the rest of the URL discarded. Boo!

Split up the string ourselves for now. We'll change this back once
splitsep is fixed.
---
 dracut/anaconda-netroot.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
index 7b8f21d..bd3e38c 100755
--- a/dracut/anaconda-netroot.sh
+++ b/dracut/anaconda-netroot.sh
@@ -5,7 +5,8 @@
 command -v getarg >/dev/null || . /lib/dracut-lib.sh
 
 # get repo info
-splitsep ":" "$root" prefix repo
+# splitsep ":" "$root" prefix repo # FIXME: doesn't work as documented!
+prefix=${root%%:*}; repo=${root#*:}
 
 # no repo? non-net root? we're not needed here.
 [ "$prefix" = "anaconda-net" ] && [ -n "$repo" ] || return 0
-- 
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