This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1475277 - "dnf reinstall grub2-efi grub2-efi-modules shim" requires internet access if dnf cache was never built, which can make it impossible to recover the EFI bootloader on systems with no internet access
"dnf reinstall grub2-efi grub2-efi-modules shim" requires internet access if ...
Status: NEW
Product: Fedora
Classification: Fedora
Component: grub2 (Show other bugs)
26
x86_64 Linux
unspecified Severity urgent
: ---
: ---
Assigned To: Peter Jones
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-26 07:32 EDT by Jonas Thiem
Modified: 2017-07-26 07:41 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jonas Thiem 2017-07-26 07:32:08 EDT
Description of problem:
"dnf install grub2-efi grub2-efi-modules shim" requires internet access if dnf cache was never built, which can make it impossible to recover the EFI bootloader on systems with no internet access. Therefore, please provide a command to achieve the same result without internet access.

Version-Release number of selected component (if applicable):
Cannot tell, because apparently checking the installed package version with dnf info needs internet too:
sudo dnf info -C grub2
Error: Cache-only enabled but no cache for 'updates'

How reproducible:
100%

Steps to Reproduce:
1. Install a new fedora system
2. Never boot it so that no dnf package cache will be there or clean it with dnf clean
3. Unplug internet
4. Nuke your EFI partition (e.g. mkfs.fat -FAT32 /dev/sda1 if that is your /boot/efi partition)
5. Attempt to repair it with the command given here: https://fedoraproject.org/wiki/GRUB_2#Updating_GRUB_2_configuration_on_UEFI_systems

Actual results:
it doesn't work without internet access

Expected results:
it works without internet access


Additional info:
Comment 1 Jonas Thiem 2017-07-26 07:39:28 EDT
Also, apparently DNS resolution is setup in a way such
Comment 2 Jonas Thiem 2017-07-26 07:41:18 EDT
Sorry, I forgot I had typed some incomplete text in the comment box when I edited the topic.

I meant "dnf reinstall grub2-efi grub2-efi-modules shim" (and not "dnf install ..." as I accidentally wrote in the bug description), the command you are meant to use when grub and efi modules and such are available as usual, but /boot/efi is nuked according to https://fedoraproject.org/wiki/GRUB_2#Updating_GRUB_2_configuration_on_UEFI_systems

Note You need to log in before you can comment on or make changes to this bug.