mirror of
https://github.com/ipxe/ipxe
synced 2025-12-09 20:09:53 +03:00
[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>
This commit is contained in:
@@ -243,10 +243,10 @@ if [ -n "${FATIMG}" ] ; then
|
|||||||
touch "${FATIMG}"
|
touch "${FATIMG}"
|
||||||
if [ "${FATSIZE}" -le "1440" ] ; then
|
if [ "${FATSIZE}" -le "1440" ] ; then
|
||||||
truncate -s 1440K "${FATIMG}"
|
truncate -s 1440K "${FATIMG}"
|
||||||
mformat -f 1440 -i "${FATIMG}" ::
|
mformat -v iPXE -i "${FATIMG}" -f 1440 ::
|
||||||
else
|
else
|
||||||
truncate -s "${FATSIZE}K" "${FATIMG}"
|
truncate -s "${FATSIZE}K" "${FATIMG}"
|
||||||
mformat -i "${FATIMG}" ::
|
mformat -v iPXE -i "${FATIMG}" ::
|
||||||
fi
|
fi
|
||||||
mcopy -i "${FATIMG}" -s "${FATDIR}"/* ::
|
mcopy -i "${FATIMG}" -s "${FATDIR}"/* ::
|
||||||
if [ "${BIOSDIR}" = "${FATDIR}" ] ; then
|
if [ "${BIOSDIR}" = "${FATDIR}" ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user