0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

grub2 におけるカーネルの指定方法

Posted at

/etc/dnf/dnf.conf の以下のエントリ

exclude=kernel*

上記が抜けてしまって、dnf update でカーネルもアップデートしてしまった?
ちょっとまって、カーネルはインストールされるものなので、前のが消えたりしません。

ひとつ前のカーネルで立ち上げればいいだけ。

今は、grubby という便利なコマンドがあるようです。

# uname -r
<新しいカーネル>
# grubby --default-index
0
# grubby --set-default-index=1
# shutdown -r now
# uname -r
<ひとつ前のカーネル>
# grubby --default-index
1

よかったー。

(参考)
https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/7/html/system_administrators_guide/sec-making_persistent_changes_to_a_grub_2_menu_using_the_grubby_tool

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?