]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Set volume name "iPXE" on FAT filesystem images
authorMichael Brown <mcb30@ipxe.org>
Thu, 21 Jan 2021 21:23:06 +0000 (21:23 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 21 Jan 2021 21:29:40 +0000 (21:29 +0000)
Allow generated filesystem images to be accessed using the file:// URI
syntax by setting a defined volume name.  This allows a script placed
on the same filesystem image to be accessed using e.g.

  chain file://iPXE/script.ipxe

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/genfsimg

index 5d0a2bdea91def244cd8e9f03a49c2eeac11ed8e..ddf0c4581ff9c85e01c716fed3dc71c0f2a15dc1 100755 (executable)
@@ -243,10 +243,10 @@ if [ -n "${FATIMG}" ] ; then
     touch "${FATIMG}"
     if [ "${FATSIZE}" -le "1440" ] ; then
        truncate -s 1440K "${FATIMG}"
-       mformat -f 1440 -i "${FATIMG}" ::
+       mformat -v iPXE -i "${FATIMG}" -f 1440 ::
     else
        truncate -s "${FATSIZE}K" "${FATIMG}"
-       mformat -i "${FATIMG}" ::
+       mformat -v iPXE -i "${FATIMG}" ::
     fi
     mcopy -i "${FATIMG}" -s "${FATDIR}"/* ::
     if [ "${BIOSDIR}" = "${FATDIR}" ] ; then