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
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os
$menuentry_id_option 'gnulinux-simple-b7889e8e-dbc4-4fe9-bf5c-dab9c20a93f8' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-
efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b7889e8e-dbc4-4fe9-bf5c-dab9c20a93f8
else
search --no-floppy --fs-uuid --set=root b7889e8e-dbc4-4fe9-bf5c-dab9c20a93f8
fi
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=b7889e8e-dbc4-4fe9-bf5c-
dab9c20a93f8 ro
pciehp.pciehp_force=1 pci=pcie_bus_perf
initrd /boot/initrd.img-3.13.0-24-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-
b7889e8e-dbc4-4fe9-bf5c-dab9c20a93f8' {
menuentry 'Ubuntu, with Linux 3.13.0-24-generic' --class ubuntu --class gnu-linux
--class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-generic-advanced-
b7889e8e-dbc4-4fe9-bf5c-dab9c20a93f8' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-
efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b7889e8e-dbc4-4fe9-bf5c-dab9c20a93f8
else
search --no-floppy --fs-uuid --set=root b7889e8e-dbc4-4fe9-bf5c-dab9c20a93f8
fi
echo 'Loading Linux 3.13.0-24-generic ...'
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=b7889e8e-dbc4-4fe9-bf5c-
dab9c20a93f8 ro
pciehp.pciehp_force=1 pci=pcie_bus_perf
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-24-generic
}
ES3000 V5 NVMe PCIe SSD
User Guide
4 Hot Swap
Issue 07 (2019-03-19)
Copyright © Huawei Technologies Co., Ltd.
63