首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
GRUB2: Set Default Menu Entry (Grub Default 設定)
service(staff) 2014/10/16 13:41

GRUB: grub2-set-default without Submenu (1st level)


$ grep "menuentry" /boot/grub2/grub.cfg | cut -d "'" -f2
$ grub2-set-default 'Fedora, with Linux 3.16.3-200.fc20.x86_64'
$ grub2-editenv list


GRUB: grub2-set-default within Submenu


$ grep "submenu\|^\smenuentry" /boot/grub2/grub.cfg | cut -d "'" -f2
$ grub2-set-default 'Advanced options for Fedora release 17 (Beefy Miracle) (on /dev/sda1)>Fedora Linux, with Linux 3.3.4-5.fc17.x86_64 (on /dev/sda1)'
$ grub2-editenv list



!注意!
如果選項在 submenu
要有 ">" ,代表 3.3.4-5.FC17 @ "Advance options for Fedora release 17" SubMenu 之內, 且字串要完整


!!Note!!
If your default-options are located in submenu,
you shall make the string like 'submenu>menuentry', and,
there is a '>' between submenu and entry.

Besides, the set-default have to be "Full" SubMenu/Entry String.



(6,921 views)
[更多討論] 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體

"GRUB2: Set Default Menu Entry (Grub Default 設定)" 傳統頁面(電腦版)

首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
傳統桌面版 [ 登入/註冊 ]
© Vovo2000.com Mobile Version 小哈手機版 2024