Bug 50525 - Поддержка сохранения выбранного пункта меню с корнем на btrfs
Summary: Поддержка сохранения выбранного пункта меню с корнем на btrfs
Status: RESOLVED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: grub (show other bugs)
Version: unstable
Hardware: all Linux
: P5 normal
Assignee: Egor Ignatov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-02 17:42 MSK by Sergey V Turchin
Modified: 2026-03-13 22:00 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey V Turchin 2024-06-02 17:42:52 MSK
https://t.me/alt_smokeroom/225643
При корне на btrfs не сохраняется выбранный пункт при загрузке
Comment 1 Sergey V Turchin 2024-06-02 20:28:11 MSK
https://t.me/alt_smokeroom/225657
LVM тоже
Comment 2 Sergey V Turchin 2024-06-02 20:30:15 MSK
https://t.me/alt_smokeroom/225669
Comment 3 Egor Ignatov 2026-02-12 13:34:33 MSK
(In reply to Sergey V Turchin from comment #0)
> https://t.me/alt_smokeroom/225643
> При корне на btrfs не сохраняется выбранный пункт при загрузке

Поддержка btrfs была добавлена в grub 2.14. В ближайшее время обновление попадет в сизиф.

(In reply to Sergey V Turchin from comment #1)
> https://t.me/alt_smokeroom/225657
> LVM тоже

Для LVM нет возможности сохранения пункта загрузки. Единственный обходной путь - создать отдельный /boot с поддерживаемой файловой системой.

Вырезка из документации grub 2.14:
"""
For safety reasons, this storage is only available when installed on a plain disk (no
LVM or RAID), using a non-checksumming filesystem (no ZFS), and using BIOS or EFI
functions (no ATA, USB or IEEE1275).
On Btrfs filesystems, a reserved area in the filesystem header may be used to store
the environment block. This static block avoids the problems of updating a normal file on
a copy-on-write filesystem, where writing raw block is not stable and requires metadata up-
date. The reserved area provides a fixed location that GRUB can update directly, allowing
commands such as grub-reboot and ‘GRUB_SAVEDEFAULT’ to function correctly on Btrfs
volumes
"""
Comment 4 Repository Robot 2026-03-13 22:00:44 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)