mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +00:00
12 lines
248 B
Bash
12 lines
248 B
Bash
|
#!/bin/bash
|
||
|
set -o pipefail
|
||
|
|
||
|
. /etc/functions
|
||
|
|
||
|
BOOT_MENU_OPTIONS=/tmp/basic-autoboot-options
|
||
|
|
||
|
scan_boot_options /boot "grub.cfg" "$BOOT_MENU_OPTIONS"
|
||
|
if [ -s "$BOOT_MENU_OPTIONS" ]; then
|
||
|
kexec-boot -b /boot -e "$(head -1 "$BOOT_MENU_OPTIONS")"
|
||
|
fi
|