Ipxe-uefi-livecd » История » Версия 5
Андрей Волков, 2019-02-14 22:40
1 | 3 | Андрей Волков | h1. Создание UEFI LiveCD образа с iPXE |
---|---|---|---|
2 | 1 | Андрей Волков | |
3 | h2. Скачаем вариант ipxe в виде приложения EFI |
||
4 | |||
5 | <pre> |
||
6 | wget http://boot.ipxe.org/ipxe.efi |
||
7 | </pre> |
||
8 | |||
9 | h2. Cоздаем FAT файловую систему |
||
10 | |||
11 | Потребуется *sys-fs/mtools* |
||
12 | |||
13 | <pre> |
||
14 | dd if=/dev/zero of=fat.img bs=1k count=1440 |
||
15 | mformat -i fat.img -f 1440 :: |
||
16 | mmd -i fat.img ::/EFI |
||
17 | mmd -i fat.img ::/EFI/BOOT |
||
18 | mcopy -i fat.img ipxe.efi ::/EFI/BOOT/BOOTX64.EFI |
||
19 | </pre> |
||
20 | |||
21 | Источник: https://wiki.osdev.org/UEFI_Bare_Bones#Creating_the_FAT_image |
||
22 | |||
23 | h2. Создаем iso образ |
||
24 | |||
25 | <pre> |
||
26 | mkdir isoFiles |
||
27 | xorriso -as mkisofs -o ipxe-uefi.iso -iso-level 3 -V UEFI isoFiles ./fat.img -e /fat.img -no-emul-boot |
||
28 | </pre> |
||
29 | |||
30 | 4 | Андрей Волков | <pre> |
31 | Drive current: -outdev 'stdio:ipxe-uefi.iso' |
||
32 | Media current: stdio file, overwriteable |
||
33 | Media status : is blank |
||
34 | Media summary: 0 sessions, 0 data blocks, 0 data, 1226m free |
||
35 | 5 | Андрей Волков | Added to ISO image: directory '/'='./isoFiles' |
36 | Added to ISO image: file '/fat.img'='./fat.img' |
||
37 | 4 | Андрей Волков | xorriso : UPDATE : 1 files added in 1 seconds |
38 | ISO image produced: 904 sectors |
||
39 | Written to medium : 904 sectors at LBA 0 |
||
40 | Writing to 'stdio:ipxe-uefi.iso' completed successfully. |
||
41 | </pre> |
||
42 | |||
43 | 1 | Андрей Волков | Источник: https://stackoverflow.com/questions/50752688/create-bootable-uefi-iso |