Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit 4221478

Browse files
fixes for efi eurolinux 8.10 (#95)
1 parent 318bfd6 commit 4221478

File tree

5 files changed

+214
-0
lines changed

5 files changed

+214
-0
lines changed

docs/assets/wrong-efi/reinstall.png

19.3 KB
Loading
264 KB
Loading
150 KB
Loading
23.3 KB
Loading
Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
# Black Screen After update to EuroLinux 8.10 - EFI problem
2+
3+
## Background
4+
5+
We are deeply sorry to inform you that one of the packages in EuroLinux 8.10
6+
created a severe mistake in the boot configuration. The package grub2-efi-x64
7+
was copied from a never-released beta repository, and it was not supposed to be
8+
there in that version.
9+
10+
11+
If you updated your system:
12+
13+
- before May 28th, 13 CET
14+
- and you are using EFI
15+
16+
The following error might appear after booting your system.
17+
18+
```
19+
error: file `/EFI/eurolinux/grubx64.efi` Not Found.
20+
```
21+
22+
and other similar errors, like:
23+
24+
```
25+
StartImage failed
26+
```
27+
28+
Generally speaking, the system won't boot into the bootloader (GRUB).
29+
Depending on your UEFI software, you might see different error messages.
30+
31+
32+
Depending on your UEFI software you might be able to boot system normally. If
33+
you can boot system you can fix the problem by reinstalling the `grub2-efi-x64`
34+
package.
35+
36+
![Example message screen](../assets/wrong-efi/wrong-efi-screen.png)
37+
38+
## When this problem does not occur
39+
40+
- If you are using a VM that does not use EFI you won't have this problem
41+
- If you are using legacy BIOS and the system was installed as legacy BIOS
42+
- Container images and other images
43+
44+
45+
## Update after May 28th, 12 CET
46+
47+
48+
If you are updating your system with a repository synced after May 28, 13 CET,
49+
you should not have this problem. The package was removed and overwritten from
50+
the repository, and the proper package was added.
51+
52+
53+
## Updated but not rebooted system
54+
If you updated but have not rebooted the system -> please reinstall the
55+
grub2-efi-x64 package and kernel packages:
56+
57+
```
58+
sudo yum clean all
59+
sudo yum reinstall -y `kernel*` `grub2*`
60+
```
61+
62+
## ISO files
63+
64+
The ISO files were updated, and the previous ISO was removed. The new ISO is
65+
supposed to be released today (May 28th).
66+
67+
## Revert from backup/snapshot
68+
69+
If you can, please revert from the backup or snapshot to version 8.9. The
70+
update process now contains overwritten, updated and proper packages, and this
71+
problem will not occur.
72+
73+
## Rescue system with wrong EFI from a live CD.
74+
75+
1. Download LiveISO CD
76+
2. Change boot order (if necessary)
77+
3. Mount ISO/Create ISO on the pendrive
78+
4. Start system from ISO
79+
5. Mount the EFI partition
80+
6. Copy the EFI files
81+
7. Run system normally
82+
8. Reinstall kernel-core and grub2-efi-x86
83+
84+
85+
86+
## Download LiveISO CD
87+
88+
One of the smallest ISO and well-known projects is Rescatux. You can download
89+
it from:
90+
https://sourceforge.net/projects/rescatux/files/rescatux-0.74/rescatux-0.74.iso/download
91+
92+
93+
You can use different ISOs, such as our Desktop Live or Ubuntu.
94+
95+
## Change the boot order (if necessary)
96+
97+
Changing the boot order might be necessary for both VM and Physical Machines.
98+
99+
## Mount ISO/Create ISO on pendrive
100+
101+
Mount rescue ISO to a VM. For physical machines, create a bootable pendrive
102+
with the ISO. The process is similar to creating a bootable pendrive for
103+
installation.
104+
105+
After mounting or inserting the pen drive, start the rescue/live CD system.
106+
107+
## Starting rescuetux or other livecd
108+
109+
You can safely start Rescuetux or another live CD. The process is similar to
110+
getting a standard desktop. You can safely skip any questions and programs and
111+
get straight to the terminal.
112+
113+
114+
![Rescue 1](../assets/wrong-efi/rescue-tux-1.png)
115+
116+
## Find and mount the EFI partition
117+
118+
Finding an EFI partition is quite straightforward use one of the following commands:
119+
120+
```
121+
sudo lsblk
122+
```
123+
124+
Example efi partition output
125+
126+
```
127+
/dev/nvme0n1p5: UUID="2A1E-AC26" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="6b15bd77-bb2e-4393-9fbb-445625660679"
128+
```
129+
130+
or
131+
132+
```
133+
lsblk -f
134+
```
135+
Example EFI partition output
136+
137+
```
138+
vda1 vfat 776-93D0
139+
```
140+
141+
After finding the EFI partition, mount it to a temporary location. In the
142+
example bellow, we are using `/mnt` as a temporary location, and partition is
143+
the `/dev/vda1`
144+
145+
```
146+
sudo mount /dev/vda1 /mnt
147+
```
148+
149+
Confirm the EFI partition is mounted correctly and contains EFI directory
150+
151+
```
152+
cd /mnt/
153+
ls
154+
```
155+
156+
The output should contains at least an EFI directory
157+
158+
```
159+
EFI
160+
```
161+
162+
## Copy the EFI files
163+
164+
```
165+
sudo cp -r /mnt/EFI/redhat/* /mnt/EFI/eurolinux/.
166+
```
167+
168+
169+
## Reboot system
170+
171+
Depending on the live CD/ISO you used, you might need to reboot the system or exit the live CD.
172+
173+
```
174+
sudo reboot
175+
```
176+
in most cases, is enough. You can also shut down the system with shutdown -h now.
177+
178+
179+
Before starting the EuroLinux system, remember to remove the rescue/LiveCD ISO
180+
ISO or pendrive.
181+
182+
183+
The whole process is as simple as the one on the screenshot:
184+
185+
![Rescue 2](../assets/wrong-efi/rescue-tux-2.png)
186+
187+
## Running the system and reinstalling the packages
188+
189+
190+
After rebooting the system you should be able to boot into the system in normall state. You can now reinstal the kernel
191+
and grub packages.
192+
193+
```
194+
sudo yum clean all
195+
sudo yum reinstall -y `kernel*` `grub2*`
196+
```
197+
198+
![Reinstall](../assets/wrong-efi/reinstall.png)
199+
200+
## Summary
201+
202+
203+
Once more, we are deeply sorry for the inconvenience. The bug skipped our
204+
testing and escaped into the public as we were changing the test structure to
205+
support new features, including Secure Boot for EuroLinux 9.
206+
207+
208+
We are working on improving our testing process to avoid such mistakes in the
209+
future.
210+
211+
212+
If you have any questions or need help, please contact us at support at
213+
euro-linux.com. We will dispatch an engineer for a one-on-one session to assist
214+
you.

0 commit comments

Comments
 (0)