This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, next has been updated via e950f7c7a39d82a620d414617e43926441ceace7 (commit) via b8b36e969c28375a5274979a7a138d4ff7535046 (commit) via dd730a395bd5f2b5becd6d56cdd998e395a19a33 (commit) via 1e848ad3d45814977f950aeabfbeb7b32bc8d196 (commit) via ff1953f7ad03796c3abf05ee1f293ae019b78ac7 (commit) from 255273a36bca887f153701fc204186ba9f245ec6 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit e950f7c7a39d82a620d414617e43926441ceace7 Author: Michael Tremer Date: Wed Jul 28 11:09:18 2021 +0000 cups: Bump package version Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter commit b8b36e969c28375a5274979a7a138d4ff7535046 Author: Michael Tremer Date: Tue Jul 27 10:07:10 2021 +0000 grub cloud: Add kernel release to boot ID Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter commit dd730a395bd5f2b5becd6d56cdd998e395a19a33 Author: Michael Tremer Date: Tue Jul 27 10:07:09 2021 +0000 flash-image: Enable GRUB_FIRST_BOOT setting Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter commit 1e848ad3d45814977f950aeabfbeb7b32bc8d196 Author: Michael Tremer Date: Tue Jul 27 10:07:08 2021 +0000 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 Signed-off-by: Arne Fitzenreiter commit ff1953f7ad03796c3abf05ee1f293ae019b78ac7 Author: Michael Tremer Date: Tue Jul 27 10:07:07 2021 +0000 flash-images: Label serial console option as "serial" Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter ----------------------------------------------------------------------- Summary of changes: config/flash-images/grub/11_linux_scon | 2 +- config/grub2/00_cloud | 30 ++++++++++++++++++++++++++++++ config/rootfiles/common/aarch64/grub | 1 + config/rootfiles/common/i586/grub | 1 + config/rootfiles/common/x86_64/grub | 1 + lfs/cups | 2 +- lfs/flash-images | 3 ++- lfs/grub | 4 ++++ 8 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 config/grub2/00_cloud Difference in files: diff --git a/config/flash-images/grub/11_linux_scon b/config/flash-images/grub/11_linux_scon index df623f470..68f554386 100755 --- a/config/flash-images/grub/11_linux_scon +++ b/config/flash-images/grub/11_linux_scon @@ -227,7 +227,7 @@ while [ "x$list" != "x" ] ; do fi if [ "x$is_first_entry" = xtrue ]; then - linux_entry "Serial Console: ${OS}" "${version}" simple \ + linux_entry "Serial Console: ${OS}" "${version}" serial \ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT} console=ttyS0,115200n8" submenu_indentation="\t" diff --git a/config/grub2/00_cloud b/config/grub2/00_cloud new file mode 100644 index 000000000..121cb2fbd --- /dev/null +++ b/config/grub2/00_cloud @@ -0,0 +1,30 @@ +#!/bin/sh +# This is an IPFire helper script for GRUB to enable the serial console +# on AWS instances at the time of the first boost + +set -e + +# Do nothing if first boot isn't enabled +if [ "${GRUB_FIRST_BOOT}" != "true" ]; then + exit 0 +fi + +. "${pkgdatadir}/grub-mkconfig_lib" + +if [ -z "${KERNEL_RELEASE}" ]; then + KERNEL_RELEASE="$(uname -r)" +fi + +if [ -z "${boot_device_id}" ]; then + boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")" +fi + +cat <