summaryrefslogtreecommitdiff
path: root/data/templates/grub/grub_common.j2
blob: 78df3f48cd8fcf22145959e6dc212ff728e8fd4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# load EFI video modules
if [ "${grub_platform}" == "efi" ]; then
    insmod efi_gop
    insmod efi_uga
fi

# create and activate serial console
function setup_serial {
    # initialize the first serial port by default
    if [ "${console_type}" == "ttyS" ]; then
        serial --unit=${console_num}
    else
        serial --unit=0
    fi
    terminal_output --append serial console
    terminal_input --append serial console
}

setup_serial

# find root device
#search --no-floppy --fs-uuid --set=root ${root_uuid}