[PATCH 2/3] Only add the .img file to .treeinfo if it exists.

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

 



---
 scripts/mk-images.ppc |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/scripts/mk-images.ppc b/scripts/mk-images.ppc
index f5368a2..434aeec 100644
--- a/scripts/mk-images.ppc
+++ b/scripts/mk-images.ppc
@@ -47,7 +47,9 @@ __EOT__
 		rmdir $TOPDESTPATH/images/netboot || :
 		rm -f $TOPDESTPATH/ppc/ppc64/zImage.lds
 		popd
-        echo "zimage = images/netboot/ppc64.img" >> $TOPDESTPATH/.treeinfo
+	if [ -f $TOPDESTPATH/images/netboot/ppc64.img ]; then
+		echo "zimage = images/netboot/ppc64.img" >> $TOPDESTPATH/.treeinfo
+	fi
 	elif [ -x $IMGPATH/usr/sbin/wrapper -a -r $IMGPATH/usr/lib64/kernel-wrapper/wrapper.a ]; then
 		mkdir -p $TOPDESTPATH/images/netboot
 		$IMGPATH/usr/sbin/wrapper -o $TOPDESTPATH/images/netboot/ppc64.img	\
@@ -55,7 +57,9 @@ __EOT__
 					  -D $IMGPATH/usr/lib64/kernel-wrapper		\
 					     $TOPDESTPATH/ppc/ppc64/vmlinuz
 		rmdir $TOPDESTPATH/images/netboot || :
-		echo "zimage = images/netboot/ppc64.img" >> $TOPDESTPATH/.treeinfo
+		if [ -f $TOPDESTPATH/images/netboot/ppc64.img ]; then
+			echo "zimage = images/netboot/ppc64.img" >> $TOPDESTPATH/.treeinfo
+		fi
 	fi
 
     echo >> $TOPDESTPATH/.treeinfo
@@ -89,7 +93,9 @@ __EOT__
 		rmdir $TOPDESTPATH/images/netboot || :
 		rm -f $TOPDESTPATH/ppc/ppc32/zImage.lds
 		popd
-        echo "zimage = images/netboot/ppc32.img" >> $TOPDESTPATH/.treeinfo
+	if [ -f $TOPDESTPATH/images/netboot/ppc32.img ]; then
+		echo "zimage = images/netboot/ppc32.img" >> $TOPDESTPATH/.treeinfo
+	fi
 	elif [ -x $IMGPATH/usr/sbin/wrapper -a -r $IMGPATH/usr/lib/kernel-wrapper/wrapper.a ]; then
 		mkdir -p $TOPDESTPATH/images/netboot
 		$IMGPATH/usr/sbin/wrapper -o $TOPDESTPATH/images/netboot/ppc32.img	\
@@ -98,7 +104,9 @@ __EOT__
 					     $TOPDESTPATH/ppc/ppc32/vmlinuz
 		rmdir $TOPDESTPATH/images/netboot || :
 		popd
-		echo "zimage = images/netboot/ppc32.img" >> $TOPDESTPATH/.treeinfo
+		if [ -f $TOPDESTPATH/images/netboot/ppc32.img ]; then
+			echo "zimage = images/netboot/ppc32.img" >> $TOPDESTPATH/.treeinfo
+		fi
 	fi
     echo >> $TOPDESTPATH/.treeinfo
 
-- 
1.6.5.rc2

_______________________________________________
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