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 1 year has passed since last update.

grub にカーネル起動パラメーターを追加する

Posted at

イマドキは /boot 内の grub.cfg を直接触らないんだ。令和なやりかたをやってみる。

環境

  • Ubuntu 22.04 LTS

やりかた

iommu=pt を追加したい。

https://gihyo.jp/admin/serial/01/ubuntu-recipe/0743
これを元に、以下のようにやってみる。

$ grub-editenv - list

何も出てこないので、何も設定されていないということらしい。

パラメータを設定する

$ sudo grub-editenv - set  iommu=pt

こうすると、以下のように設定される。

$ grub-editenv - list
iommu=pt

これが実際には、/boot/grub/grubenv に以下のように書かれるらしい。

# GRUB Environment Block
# WARNING: Do not edit this file by tools other than grub-editenv!!!
iommu=pt
next_entry=
#############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
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?