PATCH:mk-images script error causes buildinstall failure

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

 



Noticed that the mk-images script causing a buildinstall failure on the ia64 arch. The attached fixes this issue.

(I was unsure of how this list wants patches to be presented -- if the patch format that I used, diff -u, is unacceptable please reply with correct patch instructions and I will resubmit.)

The bugzilla for this patch is 162072.

P.
--- usr/lib/anaconda-runtime/mk-images.orig	2005-06-06 18:38:16.000000000 -0400
+++ usr/lib/anaconda-runtime/mk-images	2005-06-29 17:27:37.945567297 -0400
@@ -762,6 +762,7 @@
     mkdir -p $MBD_BOOTTREE
 
     # provided by the mk-image.$ARCH file
+    mkdir -p `dirname $MBD_FILENAME`
     prepareBootImage
 
     left=$(df $MBD_BOOTTREE | tail +2)
@@ -774,10 +775,7 @@
 	cp -f $KERNELROOT/$KERNELDIR/${KERNELNAME}-* $EXTRAKERNELPATH
     fi
 
-    mkdir -p `dirname $MBD_FILENAME`
-    rm -f $MBD_FILENAME
-    mv -f $MBD_TMPIMAGE $MBD_FILENAME
-    rm -rf $MBD_TMPIMAGE $MBD_MNTPOINT $MBD_BOOTTREE
+    rm -rf $MBD_MNTPOINT $MBD_BOOTTREE
     if [ -z "$INITRDFILE" ]; then
 	rm -f $MBD_FSIMAGE
     fi
--- usr/lib/anaconda-runtime/mk-images.ia64.orig	2005-06-06 18:38:16.000000000 -0400
+++ usr/lib/anaconda-runtime/mk-images.ia64	2005-06-29 17:27:41.528575066 -0400
@@ -14,9 +14,9 @@
 IDEMODULES="ide-mod ide-probe-mod ide-disk ide-cd sgiioc4"
 
 prepareBootImage() {
-	dd if=/dev/zero bs=1k count=$BOOTDISKSIZE of=$MBD_TMPIMAGE 2>/dev/null
-	mkdosfs -C $MBD_TMPIMAGE $BOOTDISKSIZE >/dev/null
-	mount -o loop -t vfat $MBD_TMPIMAGE $MBD_BOOTTREE
+	dd if=/dev/zero bs=1k count=$BOOTDISKSIZE of=$MBD_FILENAME 2>/dev/null
+	mkdosfs -C $MBD_FILENAME $BOOTDISKSIZE >/dev/null
+	mount -o loop -t vfat $MBD_FILENAME $MBD_BOOTTREE
 	mkdir -p $MBD_BOOTTREE/EFI/boot
 	cp $MBD_FSIMAGE $MBD_BOOTTREE/EFI/boot/initrd.img
 

[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