summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/genfsimg3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/genfsimg b/src/util/genfsimg
index 345673460..d31e4995d 100755
--- a/src/util/genfsimg
+++ b/src/util/genfsimg
@@ -203,6 +203,9 @@ for FILENAME ; do
DESTFILE=$(efi_boot_name "${FILENAME}")
if [ -z "${EFI}" ] ; then
mkdir -p "${DESTDIR}"
+ if [ -n "${SCRIPT}" ] ; then
+ cp "${SCRIPT}" "${FATDIR}/autoexec.ipxe"
+ fi
fi
EFI=1
;;