Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   check treeinfo retrieval for stage2 (#790348) (http://www.linux-archive.org/gentoo-user/662493-check-treeinfo-retrieval-stage2-790348-a.html)

"Brian C. Lane" 05-03-2012 12:16 AM

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

Will Woods 05-03-2012 04:49 PM

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


All times are GMT. The time now is 08:46 AM.

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