FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 04-04-2012, 09:07 PM
Will Woods
 
Default 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.
---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 06:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org