blob: 6340916e2abf600da12c86361da4753e960f1c0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
### Escribiendo grub
$ nano -w grub.cfg
```
insmod part_gpt
insmod part_msdos
insmod fat
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
insmod font
if loadfont "${prefix}/fonts/unicode.pf2" ; then
insmod gfxterm
set gfxmode="1024x768x32;auto"
terminal_input console
terminal_output gfxterm
fi
menuentry "Hyperbola GNU/Linux-libre x86_64" {
set gfxpayload=keep
search --no-floppy --set=root --label HYPER_v031
echo 'Loading linux-libre-lts kernel...'
linux /hyperbola/boot/x86_64/vmlinuz archisobasedir=hyperbola hyperisolabel=HYPER_v031 add_efi_memmap
echo 'Cargando imagen de memoria inicial...'
initrd /hyperbola/boot/x86_64/hyperiso.img
}
menuentry "UEFI Shell x86_64 v2" {
search --no-floppy --set=root --label HYPER_v031
chainloader /EFI/shellx64_v2.efi
}
menuentry "UEFI Shell x86_64 v1" {
search --no-floppy --set=root --label HYPER_v031
chainloader /EFI/shellx64_v1.efi
}
```
### Construyendo bootia32.efi
```bash
grub-mkstandalone -d /usr/lib/grub/i386-efi/ \
-O i386-efi --modules="part_gpt part_msdos" \
--fonts="unicode" --locales="uk" --themes="" \
-o "/output/path/bootia32.efi" "boot/grub/grub.cfg=/to/path/grub.cfg" \
-v
```
Recuerde cambiar `/output/path` y `/to/path/` por sus respectivo directorios
#### Nota:
- `output/path`: es la ruta de salida del archivo bootia32.efi
- `to-path`: es la ruta del archivo grub.cfg
### Copiar bootia32.efi
Copie el archivo (bootia32.efi) al directorio /EFI/BOOT de la memoria usb
ejemplo:
# mount /dev/sdc1 /mnt
# cp -v /run/hyperiso/bootmnt/EFI/BOOT/bootia32.efi /mnt/boot/efi/EFI/BOOT/bootia32.efi
|