aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-01-21 21:23:06 +0000
committerMichael Brown <mcb30@ipxe.org>2021-01-21 21:29:40 +0000
commit565ca3eab07ee4126cb868ee89853f78f5fc6692 (patch)
treeb1a5cc3ba6d1b42356e80786b4f93493a5f11dd4
parent117353815595c46a29a3aebec966ab94f6a4b3c8 (diff)
downloadipxe-565ca3eab07ee4126cb868ee89853f78f5fc6692.zip
ipxe-565ca3eab07ee4126cb868ee89853f78f5fc6692.tar.gz
ipxe-565ca3eab07ee4126cb868ee89853f78f5fc6692.tar.bz2
[build] Set volume name "iPXE" on FAT filesystem images
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>
-rwxr-xr-xsrc/util/genfsimg4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/genfsimg b/src/util/genfsimg
index 5d0a2bd..ddf0c45 100755
--- a/src/util/genfsimg
+++ b/src/util/genfsimg
@@ -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