meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| linux:grub:uefi [2025/03/24 10:17] – niziak | linux:grub:uefi [2025/03/24 10:28] (current) – niziak | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| Add new partitions to fstab: | Add new partitions to fstab: | ||
| <file ini / | <file ini / | ||
| - | UUID=D12D-CBBD | + | UUID=xxxx-xxxx |
| - | UUID=D150-1EE7 | + | UUID=D12D-CBBD |
| + | UUID=D150-1EE7 | ||
| </ | </ | ||
| Line 40: | Line 41: | ||
| done | done | ||
| + | </ | ||
| + | |||
| + | According to [[https:// | ||
| + | |||
| + | <file bash / | ||
| + | #!/bin/bash | ||
| + | |||
| + | # https:// | ||
| + | set -e | ||
| + | |||
| + | # $1 - dest efi mount point | ||
| + | copy_efi_to() { | ||
| + | if mountpoint --quiet --nofollow /boot/efi; then | ||
| + | mount " | ||
| + | rsync --times --recursive --delete /boot/efi/ " | ||
| + | # Being FAT it is even better when not mounted, won't be damaged in case of computer crash or power outage. | ||
| + | # Ref: https:// | ||
| + | umount " | ||
| + | fi | ||
| + | } | ||
| + | |||
| + | copy_efi_to /boot/efi0 | ||
| + | copy_efi_to /boot/efi1 | ||
| + | exit 0 | ||
| + | |||
| </ | </ | ||