[Fedora-livecd-list] [PATCH] cpio "-L" to dereference any symbolic link to the actual ISO

Marc Herbert Marc.Herbert at gmail.com
Mon Apr 20 11:56:41 UTC 2009


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).
---
 tools/livecd-iso-to-pxeboot.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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
 
-- 
1.6.0.6




More information about the Fedora-livecd-list mailing list