该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
进入deepin里面。终于找到了,略复杂。。。回去那台电脑上再慢慢研究一下~~
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set btrfs_relative_path="y"
export btrfs_relative_path
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod ntfs
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 0F5918A20F5918A2
else
search --no-floppy --fs-uuid --set=root 0F5918A20F5918A2
fi
loopback loop5 /deepin/disks/root.disk
set root=(loop5)
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1024x768
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=zh_CN
insmod gettext
fi
terminal_output gfxterm
insmod ntfs
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 0F5918A20F5918A2
else
search --no-floppy --fs-uuid --set=root 0F5918A20F5918A2
fi
loopback loop5 /deepin/disks/root.disk
set root=(loop5)
insmod gfxmenu
loadfont ($root)/boot/grub/themes/deepin/unifont-regular-16.pf2
insmod png
set theme=($root)/boot/grub/themes/deepin/theme.txt
export theme
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod ntfs
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 0F5918A20F5918A2
else
search --no-floppy --fs-uuid --set=root 0F5918A20F5918A2
fi
loopback loop5 /deepin/disks/root.disk
set root=(loop5)
insmod png
if background_image /boot/grub/themes/deepin/background.png; then
true
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
menuentry 'Deepin 15.3' --class deepin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2492670c-2b71-4dbc-bc07-bf58328a203e' {
gfxmode $linux_gfx_mode
insmod gzio
insmod ntfs
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 0F5918A20F5918A2
else
search --no-floppy --fs-uuid --set=root 0F5918A20F5918A2
fi
loopback loop5 /deepin/disks/root.disk
set root=(loop5)
linux/boot/vmlinuz-4.4.0-2-deepin-amd64 root=UUID=0F5918A20F5918A2 loop=/deepin/disks/root.disk boot=lupin ro splash quiet $vt_handoff
initrd/boot/initrd.img-4.4.0-2-deepin-amd64
}
submenu 'Advanced options for Deepin 15.3' $menuentry_id_option 'gnulinux-advanced-2492670c-2b71-4dbc-bc07-bf58328a203e' {
menuentry 'Deepin 15.3,Linux 4.4.0-2-deepin-amd64' --class deepin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-2-deepin-amd64-advanced-2492670c-2b71-4dbc-bc07-bf58328a203e' {
gfxmode $linux_gfx_mode
insmod gzio
insmod ntfs
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 0F5918A20F5918A2
else
search --no-floppy --fs-uuid --set=root 0F5918A20F5918A2
fi
loopback loop5 /deepin/disks/root.disk
set root=(loop5)
echo'载入 Linux 4.4.0-2-deepin-amd64 ...'
linux/boot/vmlinuz-4.4.0-2-deepin-amd64 root=UUID=0F5918A20F5918A2 loop=/deepin/disks/root.disk boot=lupin ro splash quiet $vt_handoff
echo'载入初始化内存盘...'
initrd/boot/initrd.img-4.4.0-2-deepin-amd64
}
menuentry 'Deepin 15.3, with Linux 4.4.0-2-deepin-amd64 (recovery mode)' --class deepin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-2-deepin-amd64-recovery-2492670c-2b71-4dbc-bc07-bf58328a203e' {
insmod gzio
insmod ntfs
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 0F5918A20F5918A2
else
search --no-floppy --fs-uuid --set=root 0F5918A20F5918A2
fi
loopback loop5 /deepin/disks/root.disk
set root=(loop5)
echo'载入 Linux 4.4.0-2-deepin-amd64 ...'
linux/boot/vmlinuz-4.4.0-2-deepin-amd64 root=UUID=0F5918A20F5918A2 loop=/deepin/disks/root.disk boot=lupin ro recovery nomodeset
echo'载入初始化内存盘...'
initrd/boot/initrd.img-4.4.0-2-deepin-amd64
}
}
### END /etc/grub.d/10_lupin ###
menuentry 'ShutDown' {
halt
}
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
回去写好再看看能否启动。。。拭目以待~~~