[f17-branch] check treeinfo retrieval for stage2 (#790348)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Brian C. Lane" <bcl@xxxxxxxxxx>

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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux