質問編集履歴
1
文字変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,19 +9,19 @@
|
|
9
9
|
その後grub2をインストールし、新しいカーネルにてOSを起動しようとしましたが起動時の設定変更が反映されません。
|
10
10
|
|
11
11
|
現在のデフォルトカーネルは以下となっています。
|
12
|
-
[root@
|
12
|
+
[root@]# uname -r
|
13
13
|
3.10.0-1160.90.1.el7.x86_64
|
14
14
|
|
15
15
|
これを使用可能カーネルリストの0番目のカーネルへ変更したい
|
16
|
-
[root@
|
16
|
+
[root@]# awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
|
17
17
|
CentOS Linux (6.3.2-1.el7.elrepo.x86_64) 7 (Core) ←これ
|
18
18
|
CentOS Linux (3.10.0-1160.90.1.el7.x86_64) 7 (Core)
|
19
19
|
CentOS Linux (upgrade.x86_64) 7 (Core)
|
20
20
|
CentOS Linux (tool) 7 (Core)
|
21
21
|
CentOS Linux (0-rescue-264e516f5cc4374fa882d08ad77cf516) 7 (Core)
|
22
22
|
|
23
|
-
[root@
|
23
|
+
[root@]#grub2-set-default 0
|
24
|
-
[root@
|
24
|
+
[root@]# grub2-editenv list
|
25
25
|
saved_entry=0
|
26
26
|
|
27
27
|
この状態で再起動しても新しいカーネルで起動せず、設定も反映されていませんでした。
|