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
05-03-2012, 04:49 PM
Will Woods
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