grub: Add file with cloud helping stuff

This file will detect whether to do certain actions depending on the
environment it is running on.

Currently this detects whether IPFire is booting up on AWS EC2 and
selects the serial console boot entry.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Michael Tremer
2021-07-27 10:07:08 +00:00
committed by Arne Fitzenreiter
parent ff1953f7ad
commit 1e848ad3d4
5 changed files with 33 additions and 0 deletions

View File

@@ -125,6 +125,10 @@ ifeq "$(BUILD_PC)" "1"
touch /boot/grub/grub.cfg
endif
# Install our own helpers
install -v -m 644 $(DIR_SRC)/config/grub2/00_cloud \
/etc/grub.cfg
# Install background image
-mkdir -pv /boot/grub
install -m 644 $(DIR_SRC)/config/grub2/splash.png /boot/grub/splash.png