centos 7 修改开机顺序

centos 7 修改开机顺序

ID:10253216

大小:31.00 KB

页数:5页

时间:2018-06-13

centos 7 修改开机顺序_第1页
centos 7 修改开机顺序_第2页
centos 7 修改开机顺序_第3页
centos 7 修改开机顺序_第4页
centos 7 修改开机顺序_第5页
资源描述:

《centos 7 修改开机顺序》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、CentOS7修改开机顺序在笔记本电脑安装了win8与centOS7。按照以往的惯例,安装完centOS时,会在/boot/grub/grub.conf里自动加入安装系统前其它系统的引导控制,但是实际上是没有的。此文不探讨如何将先系统引导加入centOS7的/boot/grub2/grub.cfg当中。先查看我电脑上grub.cfg当中的内容如下(注意加粗内容):[root@localhostgrub2]#catgrub.cfg#DONOTEDITTHISFILE##Itisautomaticallygeneratedbygrub2-mk

2、configusingtemplates#from/etc/grub.dandsettingsfrom/etc/default/grub####BEGIN/etc/grub.d/00_header###setpager=1if[-s$prefix/grubenv];thenload_envfiif["${next_entry}"];thensetdefault="${next_entry}"setnext_entry=save_envnext_entrysetboot_once=trueelsesetdefault="${saved_en

3、try}"fiif[x"${feature_menuentry_id}"=xy];thenmenuentry_id_option="--id"elsemenuentry_id_option=""fiexportmenuentry_id_optionif["${prev_saved_entry}"];thensetsaved_entry="${prev_saved_entry}"save_envsaved_entrysetprev_saved_entry=save_envprev_saved_entrysetboot_once=truefi

4、functionsavedefault{if[-z"${boot_once}"];thensaved_entry="${chosen}"save_envsaved_entryfi}functionload_video{if[x$feature_all_video_module=xy];theninsmodall_videoelseinsmodefi_gopinsmodefi_ugainsmodieee1275_fbinsmodvbeinsmodvgainsmodvideo_bochsinsmodvideo_cirrusfi}termina

5、l_outputconsoleif[x$feature_timeout_style=xy];thensettimeout_style=menusettimeout=5#Fallbacknormaltimeoutcodeincasethetimeout_stylefeatureis#unavailable.elsesettimeout=5fi###END/etc/grub.d/00_header######Beginwithwindows8##########menuentry'CentOSLinux(3.10.0-123.13.2.el7

6、.x86_64)7(Core)'--classcentos--classgnu-linux--classgnu--classos--unrestricted$menuentry_id_option'gnulinux-3.10.0-123.el7.x86_64-advanced-337b5933-c8eb-4c4e-8e7d-3a1f7aaa1e73'{load_videosetgfxpayload=keepinsmodgzioinsmodpart_msdosinsmodxfssetroot='hd0,msdos2'if[x$feature

7、_platform_search_hint=xy];thensearch--no-floppy--fs-uuid--set=root--hint-bios=hd0,msdos2--hint-efi=hd0,msdos2--hint-baremetal=ahci0,msdos2--hint='hd0,msdos2'337b5933-c8eb-4c4e-8e7d-3a1f7aaa1e73elsesearch--no-floppy--fs-uuid--set=root337b5933-c8eb-4c4e-8e7d-3a1f7aaa1e73fil

8、inux16/boot/vmlinuz-3.10.0-123.13.2.el7.x86_64root=UUID=337b5933-c8eb-4c4e-8e7d-3a1f7aaa1e73rovc

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。