espack
espack copied to clipboard
Make a directory to an ESP disk image
espack
Make a directory to an ESP disk image. (把目录整体打包成一个 ESP 分区的磁盘镜像。)
usage
- Download the released zip file from (here), for example
espack-1.0.zipand then decompress it. - Put all you files/directories/subdirectories... under
ESPfolder. The structure of theESPdirectory is the structure of the final ESP partition image. - Run
sh esp.shin linux or click theesp.batin Windows. - An image file
esp.img(you can rename it as you want) will be created in current directory.
Note
- By default I put a
BOOTX64.EFIfile in theEFIdirectory as an example, it's UEFI shell.efi. You should replace it with your UEFI app. - If you use a case sensitive file-system you have to (manually) merge the folders
EFIandBOOTor replace it (and don't forgetBOOTX64.EFI). - You can pack different EFI files for different architectures together, for example
BOOTX64.EFIBOOTIA32.EFIBOOTAA64.EFI...
使用方法
- 从 (这里) 下载发布的 zip 文件,例如
espack-1.0.zip,然后解压开。 - 把你所有需要的文件、目录、子目录等都放到解压后的
ESP目录下。此目录的结构即为最终ESP分区的结构。 - 对于Linux系统,在终端执行
sh esp.sh,对于Windows系统,直接点击esp.bat这个批处理即可。 - 打包成功后会在当前目录下生成一个
esp.img文件(你可以任意重命名),即为ESP分区的镜像文件。
说明
- 默认
ESP里面放了一个BOOTX64.EFI文件作为例子,是 UEFI 的 shell.efi 文件。你可以使用自己的EFI文件替换它。 - 你可以把不同构架的EFI文件打包在一起,比如
BOOTX64.EFIBOOTIA32.EFIBOOTAA64.EFI