`systemctl restart --boot-loader-entry`は一部のブートローダエントリでは機能しません。

`systemctl restart --boot-loader-entry`は一部のブートローダエントリでは機能しません。

Windowsであれ他のバージョンのLinuxであっても、指定されたブートローダでシステムを再起動する簡単な方法を設定しようとしています。私のテストシステムにインストールしました。システム起動現在インストールされているカーネルごとにエントリを作成します。これは何ですか?システム制御ブートローダエントリとして識別されます。

$ sudo systemctl reboot --boot-loader-entry=help
Linuxmint-20.1-5.4.0-58-generic.conf
Linuxmint-20.1-5.4.0-66-generic.conf
Linuxmint-20.1.conf                   <--- this is the default entry
auto-reboot-to-firmware-setup

これらの項目はすべて、systemd-bootメニューから手動で選択すると機能します。ただし、から呼び出すときにsudo systemctl reboot --boot-loader-entry=有効な項目は、基本項目とファームウェア項目のみです。再起動時にエラーが発生した場合は表示されません。起動メニューが表示されたら、メイン項目に戻ります。

以下はいくつかのブートローダ設定ファイルです。

# cat Linuxmint-20.1-5.4.0-58-generic.conf
title   Linux Mint 20.1 ulyssa (5.4.0-58-generic)
linux   /Linuxmint-20.1/vmlinuz-5.4.0-58-generic
initrd  /Linuxmint-20.1/initrd.img-5.4.0-58-generic
options root=UUID=a67973ca-bd17-4f40-aba6-160fef33086a rw rootflags=subvol=@ iommu=pt

# cat Linuxmint-20.1.conf
title   Linux Mint 20.1 ulyssa (5.4.0-67-generic)
linux   /Linuxmint-20.1/vmlinuz-5.4.0-67-generic
initrd  /Linuxmint-20.1/initrd.img-5.4.0-67-generic
options root=UUID=a67973ca-bd17-4f40-aba6-160fef33086a rw rootflags=subvol=@ iommu=pt

loader.conf私の設定に関連している可能性がありますか?

# cat loader.conf 
timeout 10
console-mode auto
editor yes
random-seed-mode always

default Linuxmint-20.1.conf

アップデート#1:systemctl reboot --boot-loader-entry=auto-windows私のメインシステムでも動作します。

ベストアンサー1

おすすめ記事