nanobsd: Recursively copy fat partition

We have a directory structure for the FAT partition now with EFI and DTC
overlays, so we need to recursively copy it.

Differential Revision: https://reviews.freebsd.org/D34241
This commit is contained in:
Jose Luis Duran 2022-02-10 12:42:25 -07:00 committed by Warner Losh
parent 74f7afdfd2
commit 0853415963

View File

@ -217,7 +217,7 @@ create_diskimage_mbr ( ) (
if [ -d ${NANO_FAT_DIR} ]; then
# Need to copy files from ${NANO_FATDIR} with mtools, or use
# makefs -t msdos once that's supported
mcopy -i ${NANO_LOG}/_.${NANO_SLICE_FAT} ${NANO_FAT_DIR}/* ::
mcopy -s -i ${NANO_LOG}/_.${NANO_SLICE_FAT} ${NANO_FAT_DIR}/* ::
fi
fi