Re: grub2-editenv: error: environment block too small after kernel install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 23, 2019 at 06:19:14PM -0600, Chris Murphy wrote:
> On Tue, Apr 23, 2019 at 8:38 AM Richard Shaw <hobbes1069@xxxxxxxxx> wrote:
> >
> > I made the mistake of editing my grubenv while converting my system from BIOS to UEFI.
> >
> > I have since manually used grub2-editenv successfully but I still get "grub2-editenv: error: environment block too small." on kernel upgrades. I've even tried manually re-padding the file with # to get to 1024 bytes.
> >
> > I have also filed and issue upstream that grub2-editenv is too fragile. It should be able to automatically re-pad the file to 1024 bytes.
> >
> > How do I "fix" this?
> 
> # ls -ls /boot/grub2
> total 4
> 4 lrwxrwxrwx. 1 root root 25 Apr 18 11:34 grubenv -> ../efi/EFI/fedora/grubenv
> 
> It's actually a symlink on both BIOS and UEFI. This file will be on
> the /boot volume (typically ext4) on BIOS systems, and it will be on
> the EFI System partition (FAT16 if anaconda creates it) on UEFI.

  This part is really counter-intuitive. Using “EFI” in path on BIOS
system made me waste some time when I was recovering my system after
f29→f30 system upgrade.
  (the problem turned out to be translation from grub2.cfg to BLS
  removing all important rd.luks.uuid= entries from kernel cmdline).

-- 
Tomasz Torcz                                                       72->|   80->|
xmpp: zdzichubg@xxxxxxxxx                                          72->|   80->|
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux