...

Text file src/edge-infra.dev/pkg/sds/ien/k8s/controllers/nodeagent/plugins/clustersecrets/grub/testdata/grub.cfg

Documentation: edge-infra.dev/pkg/sds/ien/k8s/controllers/nodeagent/plugins/clustersecrets/grub/testdata

     1insmod all_video
     2set default="0"
     3set timeout=1
     4set timeout_style="hidden"
     5set root=(lvm/ien-lvboot)
     6# Hardware detection
     7smbios --type 2 --get-string 2 --set dmi_board_name
     8smbios --type 1 --get-string 5 --set dmi_product_name
     9smbios --type 1 --get-string 6 --set dmi_product_version
    10smbios --type 1 --get-string 4 --set dmi_sys_vendor
    11clear
    12set vm=n
    13for vm_vendor in QEMU Google VirtualBox "VMware, Inc."; do
    14    if [ "${dmi_sys_vendor}" == "${vm_vendor}" ]; then
    15        set vm=y
    16        break
    17    fi
    18done
    19if [ "${dmi_sys_product_name}" == "KVM" ] ; then
    20    set vm=y
    21fi
    22set hardware_linux_options=""
    23export hardware_linux_options
    24if [ "${vm}" == "y" ]; then
    25    hardware_linux_options="console=ttyS0 console=tty1"
    26fi
    27
    28set superusers="recovery"
    29password_pbkdf2 recovery grub.pbkdf2.sha512.310000.71536F4E62412F4E416B625944694F2E.FBA97F2064F7B62FA7321A6314EE78E3
    30export superusers
    31
    32menuentry "Run" --unrestricted {
    33    linux /live/vmlinuz boot=ien_init ncr/opmode=operation audit=1 audit_backlog_limit=8192 systemd.hostname=matrix-c3-oracle apparmor=1 security=apparmor plymouth.ignore-serial-consoles splash quiet ${hardware_linux_options}
    34    initrd /live/initrd
    35}
    36# https://www.gnu.org/software/grub/manual/grub/html_node/config_005fdirectory.html#config_005fdirectory
    37source $config_directory/fallback.cfg

View as plain text