[Fedora-livecd-list] tools/livecd-iso-to-pxeboot.sh

Jeremy Katz katzj at fedoraproject.org
Mon Apr 20 12:23:51 UTC 2009


 tools/livecd-iso-to-pxeboot.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1acd7f772f1d6b4dfeb84e0aed5ee41bcd7fb908
Author: Marc Herbert <Marc.Herbert at gmail.com>
Date:   Mon Apr 20 12:56:41 2009 +0100

    cpio "-L" to dereference any symbolic link to the actual ISO
    
    This is safe because the cpio archive contains only the ISO image.
    (Such a symbolic link is helpful to track the date-based,
    constantly changing ISO name).

diff --git a/tools/livecd-iso-to-pxeboot.sh b/tools/livecd-iso-to-pxeboot.sh
index 22810d9..45a1ffe 100755
--- a/tools/livecd-iso-to-pxeboot.sh
+++ b/tools/livecd-iso-to-pxeboot.sh
@@ -87,7 +87,7 @@ fi
 # filesystem.
 ISOBASENAME=`basename "$ISO"`
 ISODIRNAME=`dirname "$ISO"`
-( cd "$ISODIRNAME" && echo "$ISOBASENAME" | cpio -H newc --quiet -o ) |
+( cd "$ISODIRNAME" && echo "$ISOBASENAME" | cpio -H newc --quiet -L -o ) |
   gzip -9 |
   cat $CDMNT/isolinux/initrd0.img - > tftpboot/initrd0.img
 





More information about the Fedora-livecd-list mailing list