mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +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
|