]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Ensure that isolinux.bin is modifiable
authorMichael Brown <mcb30@ipxe.org>
Fri, 29 Jan 2021 23:55:36 +0000 (23:55 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 29 Jan 2021 23:55:36 +0000 (23:55 +0000)
The -boot-info-table option to mkisofs will cause it to overwrite a
portion of the local copy of isolinux.bin.  Ensure that this file is
writable.

Originally-implemented-by: Nikolai Lifanov <lifanov@mail.lifanov.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/genfsimg

index c776d6633a50df3e3c8f6bf2d23c74d08df20e93..419c3f8010b1777f471d5b2e17d656da4f8fa139 100755 (executable)
@@ -106,7 +106,7 @@ copy_syslinux_file() {
        /usr/lib/ISOLINUX \
        ; do
        if [ -e "${SRCDIR}/${FILENAME}" ] ; then
-           cp "${SRCDIR}/${FILENAME}" "${DESTDIR}/"
+           install -m 644 "${SRCDIR}/${FILENAME}" "${DESTDIR}/"
            return 0
        fi
     done