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

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

    <bug>
          <bug_id>53710</bug_id>
          
          <creation_ts>2025-04-03 10:38:26 +0300</creation_ts>
          <short_desc>Переименовать GRUB_CMDLINE_LINUX в sysconfig/grub2</short_desc>
          <delta_ts>2026-03-13 22:00:55 +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>x86_64</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>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Y. Afonin">asy</reporter>
          <assigned_to name="Egor Ignatov">egori</assigned_to>
          <cc>egori</cc>
    
    <cc>nickel</cc>
    
    <cc>placeholder</cc>
    
    <cc>rider</cc>
    
    <cc>zvn</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>262314</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2025-04-03 10:38:26 +0300</bug_when>
    <thetext>В /etc/sysconfig/grub2 можно увидеть

GRUB_CMDLINE_LINUX_DEFAULT=&apos;panic=30 splash&apos;
GRUB_CMDLINE_LINUX=&apos;failsafe vga=normal&apos;

C DEFAULT понятно, что везде добавляется, но вот с GRUB_CMDLINE_LINUX какой-то диссонанс в восприятии...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262364</commentid>
    <comment_count>1</comment_count>
    <who name="zvn">zvn</who>
    <bug_when>2025-04-03 14:42:09 +0300</bug_when>
    <thetext>м.б. не надо переименовывать, а?

оба же параметра имеют своё назначение, GRUB_CMDLINE_LINUX - во все варианты загрузки включается, GRUB_CMDLINE_LINUX_DEFAULT - после GRUB_CMDLINE_LINUX в те, варианты, которые НЕ recovery

https://www.gnu.org/software/grub/manual/grub/html_node/Simple-configuration.html#Simple-configuration

‘GRUB_CMDLINE_LINUX’

    Command-line arguments to add to menu entries for the Linux kernel.

‘GRUB_CMDLINE_LINUX_DEFAULT’

    Unless ‘GRUB_DISABLE_RECOVERY’ is set to ‘true’, two menu entries will be generated for each Linux kernel: one default entry and one entry for recovery mode. This option lists command-line arguments to add only to the default menu entry, after those listed in ‘GRUB_CMDLINE_LINUX’.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262374</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2025-04-03 15:49:04 +0300</bug_when>
    <thetext>А почему у нас &quot;failsafe vga=normal&quot; в GRUB_CMDLINE_LINUX тогда? И попадает только в &quot;recovery mode&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262388</commentid>
    <comment_count>3</comment_count>
    <who name="zvn">zvn</who>
    <bug_when>2025-04-03 16:20:40 +0300</bug_when>
    <thetext>наверное, где-то здесь смысл закопан

/etc/grub.d/10_linux
.....
is_top_level=true
for linux in ${reverse_sorted_list}; do
....
  linux_entry &quot;${OS}&quot; &quot;${version}&quot; advanced \
      &quot;${GRUB_CMDLINE_LINUX_DEFAULT}&quot; $default
  if [ &quot;x${GRUB_DISABLE_RECOVERY}&quot; != &quot;xtrue&quot; ] &amp;&amp; [ &quot;x${GRUB_VMLINUZ_FAILSAFE}&quot; != &quot;xno&quot; ] &amp;&amp; [ &quot;x${GRUB_VMLINUZ_FAILSAFE}&quot; != &quot;xfalse&quot; ]; then
    if [ $linux = &quot;/boot/vmlinuz&quot; ] || [ &quot;x${GRUB_VMLINUZ_FAILSAFE}&quot; != &quot;xdefault&quot; ]; then
      linux_entry &quot;${OS}&quot; &quot;${version}&quot; recovery \
               &quot;${GRUB_CMDLINE_LINUX}&quot; $default
    fi
  fi
done</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262394</commentid>
    <comment_count>4</comment_count>
    <who name="Egor Ignatov">egori</who>
    <bug_when>2025-04-03 16:52:35 +0300</bug_when>
    <thetext>(In reply to Sergey Y. Afonin from comment #2)
&gt; А почему у нас &quot;failsafe vga=normal&quot; в GRUB_CMDLINE_LINUX тогда? И попадает
&gt; только в &quot;recovery mode&quot;?

Что-то временное опять стало постоянным :)
https://bugzilla.altlinux.org/show_bug.cgi?id=25676#c2

https://git.altlinux.org/gears/g/grub2.git?p=grub2.git;a=commit;h=daa88a5f53bdaad967ba42164f67dcb09dc289ca

А вот в апстрим GRUB_CMDLINE_LINUX_RECOVERY попал только в 2021 
https://git.savannah.gnu.org/cgit/grub.git/commit/?id=0e5889b98ac202e0aadf04f4115a810304578219


Надо будет привести все к актуальному виду и при этом не сломать обратную совместимость.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>262421</commentid>
    <comment_count>5</comment_count>
    <who name="zvn">zvn</who>
    <bug_when>2025-04-04 08:26:38 +0300</bug_when>
    <thetext>оно?

https://git.altlinux.org/gears/g/grub.git?p=grub.git;a=commitdiff;h=775fa7d1c7eef82ef29eb2e5ed300d1a97243f61

замены вида
     linux_entry &quot;${OS}&quot; &quot;${version}&quot; simple \
-    &quot;${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}&quot;
+    &quot;${GRUB_CMDLINE_LINUX_DEFAULT}&quot;

или 
   linux_entry &quot;${OS}&quot; &quot;${version}&quot; advanced \
-              &quot;${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}&quot;
-  if [ &quot;x${GRUB_DISABLE_RECOVERY}&quot; != &quot;xtrue&quot; ]; then
-    linux_entry &quot;${OS}&quot; &quot;${version}&quot; recovery \
-                &quot;single ${GRUB_CMDLINE_LINUX}&quot;
+      &quot;${GRUB_CMDLINE_LINUX_DEFAULT}&quot; $default

т.е. вместо 4-го параметра, соединяющего две строки &quot;${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}&quot; теперь отправляет 4-й параметр &quot;${GRUB_CMDLINE_LINUX_DEFAULT}&quot; и 5й параметр  $default, при том, что $5 там нет, не очень ясно.

linux_entry ()
{
  os=&quot;$1&quot;
  version=&quot;$2&quot;
  type=&quot;$3&quot;
  args=&quot;$4&quot;

  if [ -z &quot;$boot_device_id&quot; ]; then
....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283843</commentid>
    <comment_count>6</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-03-13 22:00:55 +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>