Bug 52193

Summary: error: sparse file not allowed при загрузке, когда корень на f2fs
Product: Sisyphus Reporter: Антон Мидюков <antohami>
Component: grubAssignee: Egor Ignatov <egori>
Status: RESOLVED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: nickel, placeholder, rider, ruslandh
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Антон Мидюков 2024-11-25 23:31:08 MSK
Когда корень на f2fs перед загрузкой ОС появляется сообщение:

error: sparse file not allowed.

Press any key to continue...

Сообщение возникает из-за того, что grub не может сохранить дефолтный пункт меню.
Если прописать в /etc/sysconfig/grub2:

GRUB_SAVEDEFAULT=false

и сделать update-grub, то ошибка пропадает.
Вероятно, какого-то модуля не хватает у grub для записи на f2fs (или это не поддерживается). Ошибка проявляется как на UEFI, так и в legacy.
Comment 1 ruslandh 2025-10-20 19:12:29 MSK
https://wiki.archlinux.org/title/F2FS

Утверждает:

Поддержка GRUB

Хотя GRUB поддерживает F2FS начиная с версии 2.0.4, он не может корректно читать загрузочные файлы с раздела F2FS, созданного с включённым флагом extra_attr (подробнее см. в разделе GRUB#Неподдерживаемые файловые системы).
Comment 2 ruslandh 2025-10-20 19:34:02 MSK
https://savannah.gnu.org/bugs/?66813
Comment 3 ruslandh 2025-10-20 19:37:43 MSK
А так, советуют создать маленький ext раздел boot.
Удаление аттрибутов extra_attr ведёт к отключению кучи фич f2fs , а в одном месте прочёл, что и к неустойчивости при отключении питания.
Comment 4 Repository Robot 2026-03-13 22:00:50 MSK
grub-2.14-alt1 -> sisyphus:

Fri Feb 27 2026 Egor Ignatov <egori@altlinux> 2.14-alt1
- update to grub 2.14
- add grub-efi-install utility for EFI installation with Secure Boot support and
  proper NVRAM management (closes: #52976)
- add probe module to efi image (closes: #54496)
- align with upstream usage for GRUB_CMDLINE_LINUX variable (closes: #53710)
- replace 'failsafe' with 'single' default for recovery boot entries (closes: #44269)
- add GRUB_BTRFS_USE_DEFAULT_SUBVOL option (closes: #56881)
- new subpackage grub-common-extra (closes: #38715, #51394, #51395)
- add ALT Linux distro name translation (closes: #36004)
- add "UEFI Firmware settings" translation (closes: #48768)
- read distro name from /etc/os-release (closes: #55546)
- add btrfs savedefault support (closes: #50525)
- disable savedefault for f2fs (closes: #52193)
- refactor grub filetriggers (closes: #57107)
- enhance grub-efi-autoupdate UX (closes: #56960)