<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>50525</bug_id>
          
          <creation_ts>2024-06-02 17:42:52 +0300</creation_ts>
          <short_desc>Поддержка сохранения выбранного пункта меню с корнем на btrfs</short_desc>
          <delta_ts>2026-03-13 22:00:44 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>grub</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey V Turchin">zerg</reporter>
          <assigned_to name="Egor Ignatov">egori</assigned_to>
          <cc>nickel</cc>
    
    <cc>placeholder</cc>
    
    <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>247119</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2024-06-02 17:42:52 +0300</bug_when>
    <thetext>https://t.me/alt_smokeroom/225643
При корне на btrfs не сохраняется выбранный пункт при загрузке</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247138</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2024-06-02 20:28:11 +0300</bug_when>
    <thetext>https://t.me/alt_smokeroom/225657
LVM тоже</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247139</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2024-06-02 20:30:15 +0300</bug_when>
    <thetext>https://t.me/alt_smokeroom/225669</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281910</commentid>
    <comment_count>3</comment_count>
    <who name="Egor Ignatov">egori</who>
    <bug_when>2026-02-12 13:34:33 +0300</bug_when>
    <thetext>(In reply to Sergey V Turchin from comment #0)
&gt; https://t.me/alt_smokeroom/225643
&gt; При корне на btrfs не сохраняется выбранный пункт при загрузке

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

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

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

Вырезка из документации grub 2.14:
&quot;&quot;&quot;
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
&quot;&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283831</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-03-13 22:00:44 +0300</bug_when>
    <thetext>grub-2.14-alt1 -&gt; sisyphus:

Fri Feb 27 2026 Egor Ignatov &lt;egori@altlinux&gt; 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 &apos;failsafe&apos; with &apos;single&apos; 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 &quot;UEFI Firmware settings&quot; 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)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>