Как можно выбрать новое ядро на начальной загрузке, выполнив выделенный сервер?

Вы использовали "Результирующий Набор политики", чтобы проверить, выполняется ли политика?

Информация здесь: http://technet.microsoft.com/en-us/library/dd346858.aspx

Это скажет Вам, что или не выполняется.

1
задан 2 August 2013 в 10:01
3 ответа

Установите переменную GRUB_DEFAULT в / etc / default / grub . Вы можете использовать заголовок записи ядра вместо индекса, чтобы его не беспокоили последующие установки / удаления ядра. Затем вам нужно запустить update-grub . Из руководства Grub :

‘GRUB_DEFAULT’
The default menu entry. This may be a number, in which case it identifies the
Nth entry in the generated menu counted from zero, or the title of a menu entry,
or the special string ‘saved’. Using the title may be useful if you want to set
a menu entry as the default even though there may be a variable number of entries 
before it.

For example, if you have:

     menuentry 'Example GNU/Linux distribution' --class gnu-linux {
     ...
     }

then you can make this the default using:

    GRUB_DEFAULT='Example GNU/Linux distribution'

If you set this to ‘saved’, then the default menu entry will be that saved by
‘GRUB_SAVEDEFAULT’, grub-set-default, or grub-reboot. 
3
ответ дан 3 December 2019 в 18:52

Just edit /boot/grub/grub.cfg

set default="X"

where X is an index number of kernel definition in the /boot/grub/grub.cfg

0
ответ дан 3 December 2019 в 18:52

There's grub-set-default(8) which can be used to select the boot entry if you're using savedefault. If you're not using savedefault the default is set default="0" which boots the first defined kernel. Usually the kernels are ordered from latest to oldest in order to boot into the latest kernel.

0
ответ дан 3 December 2019 в 18:52

Теги

Похожие вопросы