Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Kernel (http://www.linux-archive.org/debian-kernel/)
-   -   fix repo={hd,cdrom}:DEV:PATH (#810136) (http://www.linux-archive.org/debian-kernel/653185-fix-repo-hd-cdrom-dev-path-810136-a.html)

Will Woods 04-05-2012 10:56 PM

fix repo={hd,cdrom}:DEV:PATH (#810136)
 
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

"Brian C. Lane" 04-05-2012 11:03 PM

fix repo={hd,cdrom}:DEV:PATH (#810136)
 
Ack to both of these.

--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 10:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.