[РЕШЕНО] как можно сделать шаблон grub, чтобы после обновления в grub осталась строка загрузки по умолчанию, отличная от 0?

На моем компьютере установлено 2 системы, Windows и Calculate Linux. Надо, чтобы по умолчанию загружалась Windows, поэтому в /etc/default/grub правлю строку GRUB_DEFAULT=saved на GRUB_DEFAULT=2, затем делаю cl-setup-boot, соглашаюсь с новой кофигурацией и до обновления ядра все так и остается, а после обновления приходится повторять процедуру. Как бы добиться вечного оргазма? Пишу первый раз, поэтому уж сильно не ругайте…

Создайте файл /etc/default/grub.clt со следующим содержимым:

 # Calculate format=openrc
GRUB_DEFAULT=2

и выполните <>

огромное спасибо, сейчас сделаю!

обидно, не получилось…

куда еще можно копнуть?

вот какой получился файл /etc/default/grub.ctl, вроде должно быть гуд, но по умолчанию загрузка с 0 строки

#------------------------------------------------------------------------------
 # Modified Calculate Utilities 3.5.2.19
 # Processed template files:
 # /var/lib/layman/calculate/profiles/templates/3.5/2_ac_install_merge/sys-boot/grub/default.grub
 # /var/lib/layman/calculate/profiles/templates/3.5/3_ac_install_live/1-merge/sys-boot/grub/splashutils/default.grub
 # For modify this file, create /etc/default/grub.clt template.
#------------------------------------------------------------------------------
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
#
 # To populate all changes in this file you need to regenerate your
 # grub configuration file afterwards:
 #     'grub2-mkconfig -o /boot/grub/grub.cfg'
#
 # See the grub info page for documentation on possible variables and
 # their associated values.

GRUB_DISTRIBUTOR="Calculate Linux Desktop Cinnamon"

 # Default menu entry
#GRUB_DEFAULT=0

 # Boot the default entry this many seconds after the menu is displayed
#GRUB_TIMEOUT=5
#GRUB_TIMEOUT_STYLE=menu

 # Append parameters to the linux kernel command line
#GRUB_CMDLINE_LINUX=""
#
 # Examples:
#
 # Boot with network interface renaming disabled
 # GRUB_CMDLINE_LINUX="net.ifnames=0"
#
 # Boot with systemd instead of sysvinit (openrc)
 # GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"

 # Append parameters to the linux kernel command line for non-recovery entries
#GRUB_CMDLINE_LINUX_DEFAULT=""

 # Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

 # The resolution used on graphical terminal.
 # Note that you can use only modes which your graphic card supports via VBE.
 # You can see them in real GRUB with the command `vbeinfo'.
#GRUB_GFXMODE=640x480

 # Set to 'text' to force the Linux kernel to boot in normal text
 # mode, 'keep' to preserve the graphics mode set using
 # 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
 # graphics mode, or a sequence of these separated by commas or
 # Calculate format=openrc
GRUB_DEFAULT=2

короче, я сделал все не правильно, но работает.
/var/lib/layman/calculate/profiles/templates/3.5/2_ac_install_merge/sys-boot/grub/default.grub
и вот тут поменял GRUB_DEFAULT=2
и после cl-setup-boot загружается нужный пункт меню. Посмотрим, что будет дальше…
Я так понял, что /etc/default/grub.ctl должен был как раз изменить строку в основном шаблоне.

Файл должен называться /etc/default/grub.clt (расширение CLT).

спасибо, вот я какой невнимательный!!! Когда писал, типа Сalculate Temp Lates, вот так и получилось:), а надо было Calculat Linux Templates!
Пенсию просто так не дают!!! Как пометить, что решено?

Стесняюь спросить. Я правильно делаю?
Нужно мне на локалхосте поменять пару параметров (переопределить). В шаблоне для sshd почему-то написано squid. Если формат “параметр значение”, то можно для любого конфига так писать? В некоторых конфигах несколько одноименных параметров…

cat /etc/ssh/sshd_config.clt

Calculate format=squid

PasswordAuthentication no
PermitRootLogin no

И хотелось бы собрать все шаблоны в одной папочке чтоб не потерялись., но домена у меня нет и папок из инструкций layman/remote тоже. Есть варианты?