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 > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 05-03-2012, 12:16 AM
"Brian C. Lane"
 
Default check treeinfo retrieval for stage2 (#790348)

From: "Brian C. Lane" <bcl@redhat.com>

If there is no treeinfo the stage2 variable may still be set,
check if treeinfo or stage2 are empty and fall back to
LiveOS/squashfs.img
---
dracut/anaconda-netroot.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
index bd3e38c..76d6d7d 100755
--- a/dracut/anaconda-netroot.sh
+++ b/dracut/anaconda-netroot.sh
@@ -40,7 +40,7 @@ case $repo in
info "anaconda fetching installer from $repo"
treeinfo=$(fetch_url $repo/.treeinfo) &&
stage2=$(config_get stage2 mainimage < $treeinfo)
- if [ -z "$stage2" ]; then
+ if [ -z "$treeinfo" -o -z "$stage2" ]; then
warn "can't find installer mainimage path in .treeinfo"
stage2="LiveOS/squashfs.img"
fi
--
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-03-2012, 04:49 PM
Will Woods
 
Default check treeinfo retrieval for stage2 (#790348)

On Wed, 2012-05-02 at 17:16 -0700, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl@redhat.com>
>
> If there is no treeinfo the stage2 variable may still be set,
> check if treeinfo or stage2 are empty and fall back to
> LiveOS/squashfs.img

ACK.

-w


_______________________________________________
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 11:12 AM.

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