Project

General

Profile

Actions

Bug #15081

open

Upgrade fails due to undersized EFI filesystem

Added by Jim Pingle 5 months ago. Updated 15 days ago.

Status:
New
Priority:
Normal
Category:
Upgrade
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
24.07
Release Notes:
Default
Affected Version:
Affected Architecture:

Description

Some installations as recent as Plus 22.01 / CE 2.6.0 have EFI partitions that were created and/or populated by the old EFIFAT image method. This means that while the EFI partition is 200M, the EFI filesystem is only around 700KB. As a result, these installations are unable to upgrade to recent versions successfully as the loader cannot be updated.

This can be worked around by reformatting the EFI partition directly and copying the appropriate files back into place, as described in this forum post: https://forum.netgate.com/post/1140955

# mkdir -p /boot/efi
# mount_msdosfs /dev/msdosfs/EFISYS /boot/efi
# mkdir -p /tmp/efitmp
# cp -Rp /boot/efi/* /tmp/efitmp
# umount /boot/efi
# newfs_msdos -F 32 -c 1 -L EFISYS /dev/msdosfs/EFISYS
# mount_msdosfs /dev/msdosfs/EFISYS /boot/efi
# cp -Rp /tmp/efitmp/* /boot/efi/

There are some potential complications there. For example, the EFI filesystem may not be labeled that way, it could be /dev/gpt/EFISYS or it may have no label at all.

Marked as Plus 24.03/CE 2.8.0 but if it can be fixed in the pfSense-boot package the fix could be picked back to 23.09.1/2.7.2.


Related issues

Related to Bug #14983: Upgrade can fail when unexpected EFI partitions are present.NewChristian McDonald

Actions
Related to Bug #15082: Upgrade fails due to unmounted EFI filesystemClosedChristian McDonald

Actions
Related to Bug #15084: Upgrading an EFI system installed to ZFS mirror does not upgrade EFI loader on additional disksNewChristian McDonald

Actions
Has duplicate Bug #15093: Unable to install update 2.7.2 due to EFI errorDuplicate

Actions
Actions #1

Updated by Jim Pingle 5 months ago

  • Related to Bug #14983: Upgrade can fail when unexpected EFI partitions are present. added
Actions #2

Updated by Jim Pingle 5 months ago

  • Related to Bug #15082: Upgrade fails due to unmounted EFI filesystem added
Actions #3

Updated by Jim Pingle 5 months ago

  • Related to Bug #15084: Upgrading an EFI system installed to ZFS mirror does not upgrade EFI loader on additional disks added
Actions #4

Updated by Luca Piccirillo 5 months ago

Do old efifat images match well-known hashes? If so, look for a partition matching the hash (maybe a bunch of different hashes for recent/upgrade-supported releases) and do the workaround on it. If none is found accept a failure pointing users to this issue. If this fits the vast majority of installations it could be acceptable.

Actions #5

Updated by Jim Pingle 4 months ago

  • Has duplicate Bug #15093: Unable to install update 2.7.2 due to EFI error added
Actions #6

Updated by Christian McDonald about 1 month ago

  • Assignee set to Christian McDonald
Actions #7

Updated by Jim Pingle 15 days ago

  • Plus Target Version changed from 24.03 to 24.07

Moving this ahead as it still might be an issue though it's unclear how many affected systems may be left in the wild. I've tried installing versions as far back as 21.02 and they all had properly sized EFI filesystems, so we also are still investigating the exact circumstances around when/how these systems may have ended up in the problem state.

Actions

Also available in: Atom PDF