]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Avoid errors when build directory is mounted via NFS
authorMichael Brown <mcb30@ipxe.org>
Tue, 13 May 2014 10:20:04 +0000 (11:20 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 13 May 2014 15:45:57 +0000 (16:45 +0100)
Reported-by: Robin Smidsrød <robin@smidsrod.no>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/Makefile.linux
src/util/geniso

index e35b04f0e3b1439d1961cb5c5613c0e76985a4e7..1faf847532e22f742bab05fe6bc3e38ef86e43e9 100644 (file)
@@ -10,4 +10,4 @@ SRCDIRS += arch/x86/core/linux
 
 $(BIN)/%.linux : $(BIN)/%.linux.tmp
        $(QM)$(ECHO) "  [FINISH] $@"
-       $(Q)cp -p $< $@
+       $(Q)$(CP) $< $@
index 4dc721927bedd9f2c6489fd5b6f9cd347fc191fd..bcf294a66f47886048fc4c024083299acfe61e9c 100755 (executable)
@@ -37,13 +37,13 @@ out=$1
 shift
 dir=`mktemp -d bin/iso.dir.XXXXXX`
 cfg=$dir/isolinux.cfg
-cp -p $isolinux_bin $dir
+cp $isolinux_bin $dir
 
 # syslinux 6.x needs a file called ldlinux.c32
 ldlinux_c32=$(dirname ${isolinux_bin})/ldlinux.c32
 if [ -s ${ldlinux_c32} ]
 then
-       cp -p ${ldlinux_c32} ${dir}
+       cp ${ldlinux_c32} ${dir}
 fi
 
 cat > $cfg <<EOF
@@ -70,7 +70,7 @@ do
        first=$g
        echo LABEL $b
        echo "" KERNEL $g
-       cp -p $f $dir/$g
+       cp $f $dir/$g
 done >> $cfg
 $mkisofs -quiet -l -o $out -c boot.cat -b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table $dir
 rm -fr $dir