/usr/share/dell/grub/recovery_partition.cfg is in dell-recovery 1.48.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | #########################################################
# #
# Dell Grub2 configuration file for recovery partitions #
# By: Mario Limonciello <Mario_Limonciello@Dell.com> #
# #
#########################################################
#
# Try to load the grub environment. We may have set a failure bit here.
# If the failure bit is set, then we don't default to automatic install
#
if [ -s /factory/grubenv ]; then
set have_grubenv=true
load_env -f /factory/grubenv
fi
if [ "${recordfail}" = 1 ]; then
set timeout=-1
set default=0
else
set timeout=0
set default=4
fi
#
# Load other misc defaults
#
#First check our current directory for additional options
if [ -s /factory/common.cfg ]; then
source /factory/common.cfg
fi
#Post RTS deliverables
if [ -s /factory/post-rts-gfx.cfg ]; then
source /factory/post-rts-gfx.cfg
fi
if [ -s /factory/post-rts-wlan.cfg ]; then
source /factory/post-rts-wlan.cfg
fi
#Now set the root partition that has our OS installer
search --no-floppy --hint '(hd0,#PARTITION#)' --set --fs-uuid #UUID#
#If we still don't have options, they are on the the RP too, look there
#If missing, load a nice basic default set
if [ -z "${options}" ]; then
if [ -s /factory/common.cfg ]; then
source /factory/common.cfg
else
set options="boot=casper automatic-ubiquity noprompt quiet splash nomodeset --"
fi
#Post RTS deliverables
if [ -s /factory/post-rts-gfx.cfg ]; then
source /factory/post-rts-gfx.cfg
fi
if [ -s /factory/post-rts-wlan.cfg ]; then
source /factory/post-rts-wlan.cfg
fi
fi
set uuid_options="uuid=#UUID#"
#Support starting from a loopback mount (Only support ubuntu.iso for filename)
if [ -f /ubuntu.iso ]; then
loopback loop /ubuntu.iso
set root=(loop)
set loop_options="iso-scan/filename=/ubuntu.iso"
fi
set menu_color_normal=white/red
set menu_color_highlight=red/white
#
# Show the menu if we press shift
#
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
#Set up for EFI if need be
if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi
#We currently assume all machines can do this
#There is a blacklist system in ubuntu though
#that can be implemented if need be.
set gfxpayload=keep
#
# Debugging information and options
#
menuentry "If you are seeing this menu, your installation has failed." {
chainloader +1
}
menuentry "Choose from the following options for debugging purposes:" {
chainloader +1
}
menuentry "" {
chainloader +1
}
menuentry "Single User Mode" {
linux /casper/vmlinuz.efi boot=casper noprompt single $uuid_options $loop_options --
initrd /casper/initrd.lz
}
#
# Default option
#
menuentry "Automated Installation of #OS# (Default)" {
set recordfail=1
if [ -n "${have_grubenv}" ]; then save_env -f /factory/grubenv recordfail; fi
linux /casper/vmlinuz.efi $uuid_options $options $loop_options
initrd /casper/initrd.lz
}
|