parent
6ce8222e00
commit
a27fd36724
@ -54,43 +54,48 @@
|
|||||||
13. `# mount /dev/mmcblk1p2 /mnt`
|
13. `# mount /dev/mmcblk1p2 /mnt`
|
||||||
`# mount /dev/mmcblk1p3 /mnt/home`
|
`# mount /dev/mmcblk1p3 /mnt/home`
|
||||||
|
|
||||||
14. `# pacstrap -i /mnt base base-devel dhcpcd grub-bios wpa_supplicant xf86-input-synaptics kernel-firmware`
|
14. `# pacstrap -i /mnt base base-devel dhcpcd grub-bios wpa_supplicant xf86-input-synaptics kernel-firmware grub efibootmgr dosfstools openssh os-prober mtools linux-libre-lts-api-headers linux-libre-lts`
|
||||||
15. `# genfstab -U -p /mnt >> /mnt/etc/fstab`
|
15. `# genfstab -U -p /mnt >> /mnt/etc/fstab`
|
||||||
16. `# arch-chroot /mnt`
|
16. Build EFI
|
||||||
17. `# pacman -S base-devel grub efibootmgr dosfstools openssh os-prober mtools linux-libre-lts-api-headers linux-libre-lts`
|
|
||||||
|
```bash
|
||||||
|
|
||||||
|
# mkdir /boot/efi
|
||||||
|
|
||||||
|
# mount /dev/mmcblk1p1 /boot/efi
|
||||||
|
|
||||||
|
# mkdir /boot/efi/EFI/BOOT
|
||||||
|
|
||||||
|
# cp -v /boot/efi/EFI/GRUB/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFI
|
||||||
|
```
|
||||||
|
|
||||||
|
17. `# arch-chroot /mnt`
|
||||||
18. `# nano /etc/locale.gen` (uncomment es_ES.UTF-8)
|
18. `# nano /etc/locale.gen` (uncomment es_ES.UTF-8)
|
||||||
19. `# locale-gen`
|
19. `# locale-gen`
|
||||||
20. Enable `root` logon via `ssh`
|
20. Enable `root` logon via `ssh`
|
||||||
21. `# rc-update add sshd default`
|
21. `# rc-update add sshd default`
|
||||||
22. `# passwd` (for setting root password)
|
22. `# passwd` (for setting root password)
|
||||||
|
23. `nano -w /boot/efi/startup.nsh`
|
||||||
23. Build EFI (before `arch-chroot /mnt`)
|
|
||||||
`# mkdir /boot/efi`
|
|
||||||
`# mount /dev/mmcblk1p1 /boot/efi`
|
|
||||||
`# mkdir /boot/efi/EFI/BOOT`
|
|
||||||
`# cp -v /boot/efi/EFI/GRUB/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFI`
|
|
||||||
|
|
||||||
24. `nano -w /boot/efi/startup.nsh`
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bcf boot add 1 fs0:\EFI\GRUB\grubx64.efi "Hyper GRUB bootloader"
|
bcf boot add 1 fs0:\EFI\GRUB\grubx64.efi "Hyper GRUB bootloader"
|
||||||
```
|
```
|
||||||
|
|
||||||
25. `# grub-install --target=x86_64-efi --bootloader-id=GRUB --recheck --efi-directory=/boot/efi`
|
24. `# grub-install --target=x86_64-efi --bootloader-id=GRUB --recheck --efi-directory=/boot/efi`
|
||||||
|
|
||||||
26. `# cp /usr/share/locale/es/LC_MESSAGES/grub.mo /boot/grub/locale/es.mo`
|
25. `# cp /usr/share/locale/es/LC_MESSAGES/grub.mo /boot/grub/locale/es.mo`
|
||||||
27. `# grub-mkconfig -o /boot/grub/grub.cfg`
|
26. `# grub-mkconfig -o /boot/grub/grub.cfg`
|
||||||
|
|
||||||
28. Build botia32.efi (necessary in ASUSx205TA)
|
27. Build botia32.efi (necessary in ASUSx205TA)
|
||||||
`# grub-mkstandalone -d /usr/lib/grub/i386-efi/ -O i386-efi --modules="part_gpt part_msdos" --fonts="unicode" --locales="uk" --themes="" -o "/boot/efi/EFI/GRUB/bootia32.efi" "boot/grub/grub.cfg=/boot/grub/grub.cfg" -v`
|
`# grub-mkstandalone -d /usr/lib/grub/i386-efi/ -O i386-efi --modules="part_gpt part_msdos" --fonts="unicode" --locales="uk" --themes="" -o "/boot/efi/EFI/GRUB/bootia32.efi" "boot/grub/grub.cfg=/boot/grub/grub.cfg" -v`
|
||||||
`# cp -v /boot/efi/EFI/GRUB/bootia32.efi /boot/efi/EFI/BOOT/BOOTIA32.EFI`
|
`# cp -v /boot/efi/EFI/GRUB/bootia32.efi /boot/efi/EFI/BOOT/BOOTIA32.EFI`
|
||||||
|
|
||||||
29. Create swap file:
|
28. Create swap file:
|
||||||
* `# fallocate -l 2G /swapfile`
|
* `# fallocate -l 2G /swapfile`
|
||||||
* `# chmod 600 /swapfile`
|
* `# chmod 600 /swapfile`
|
||||||
* `# mkswap /swapfile`
|
* `# mkswap /swapfile`
|
||||||
* `# echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab`
|
* `# echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab`
|
||||||
|
|
||||||
30. `$ exit`
|
29. `$ exit`
|
||||||
31. `# umount -a`
|
30. `# umount -a`
|
||||||
32. `# reboot`
|
31. `# reboot`
|
||||||
|
@ -54,3 +54,7 @@ Recuerde cambiar `/output/path` y `/to/path/` por sus respectivo directorios
|
|||||||
|
|
||||||
### Copiar bootia32.efi
|
### Copiar bootia32.efi
|
||||||
Copie el archivo (bootia32.efi) al directorio /EFI/BOOT de la memoria usb
|
Copie el archivo (bootia32.efi) al directorio /EFI/BOOT de la memoria usb
|
||||||
|
|
||||||
|
ejemplo:
|
||||||
|
|
||||||
|
cp -v /run/hyperiso/bootmnt/EFI/BOOT/bootx64.efi /mnt/boot/efi/EFI/BOOT/BOOTX64.EFI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user