diff options
author | Will Woods <wwoods@redhat.com> | 2012-04-04 17:02:33 -0400 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2012-04-04 17:02:33 -0400 |
commit | 844c0c156ed2f27920257d86690f3017727f398e (patch) | |
tree | 143ade0d0bd13b44bb43bb8f2750a356d0e300b2 /dracut/anaconda-netroot.sh | |
parent | 592e9139d6b48e0ed2579e9ab2341283824b5132 (diff) | |
download | anaconda-844c0c156ed2f27920257d86690f3017727f398e.tar.gz anaconda-844c0c156ed2f27920257d86690f3017727f398e.tar.xz anaconda-844c0c156ed2f27920257d86690f3017727f398e.zip |
Fix repo={http,ftp,nfs} (#810005)
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.
Diffstat (limited to 'dracut/anaconda-netroot.sh')
-rwxr-xr-x | 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 7b8f21dad..bd3e38c77 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 |