public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: Arne Fitzenreiter <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. e119ed0c2dc49e398e41a6c5eff85fe934cc4054
Date: Mon, 30 Jun 2025 06:51:54 +0000 (UTC)	[thread overview]
Message-ID: <4bVxfM0c5qz2xXM@people01.haj.ipfire.org> (raw)

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  e119ed0c2dc49e398e41a6c5eff85fe934cc4054 (commit)
      from  2c40362e9c34101082ae5c5ecfcf42eeffb5967a (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 e119ed0c2dc49e398e41a6c5eff85fe934cc4054
Author: Arne Fitzenreiter <arne_f@ipfire.org>
Date:   Mon Jun 30 08:50:02 2025 +0200

    grub/installer: add console=tty1 to default entry
    
    this is needed because some arm systems try to set more than one
    console output via firmware/dtb and this is incompatible with the old
    initsystem that ipfire use.
    
    Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>

-----------------------------------------------------------------------

Summary of changes:
 config/cdrom/grub.cfg                     | 6 +++---
 config/grub2/default                      | 2 +-
 config/rootfiles/core/196/filelists/files | 1 +
 src/initscripts/system/partresize         | 2 +-
 src/installer/main.c                      | 2 +-
 5 files changed, 7 insertions(+), 6 deletions(-)

Difference in files:
diff --git a/config/cdrom/grub.cfg b/config/cdrom/grub.cfg
index 1388ec691f..d5d3524e0e 100644
--- a/config/cdrom/grub.cfg
+++ b/config/cdrom/grub.cfg
@@ -17,18 +17,18 @@ insmod ext2
 set timeout=60
 
 menuentry 'Install NAME VERSION ARCH' --class ipfire --class gnu-linux --class gnu --class os {
-	linux /boot/isolinux/vmlinuz
+	linux /boot/isolinux/vmlinuz console=tty1
 	initrd /boot/isolinux/instroot
 }
 
 submenu 'Other Installation Options -->' {
 	menuentry 'Install NAME VERSION (Text Mode)' --class ipfire --class gnu-linux --class gnu --class os {
-		linux /boot/isolinux/vmlinuz nomodeset novga
+		linux /boot/isolinux/vmlinuz console=tty1 nomodeset novga
 		initrd /boot/isolinux/instroot
 	}
 
 	menuentry 'Unattended installation' --class ipfire --class gnu-linux --class gnu --class os {
-		linux /boot/isolinux/vmlinuz installer.unattended
+		linux /boot/isolinux/vmlinuz console=tty1 installer.unattended
 		initrd /boot/isolinux/instroot
 	}
 }
diff --git a/config/grub2/default b/config/grub2/default
index 127d334454..32abf0f8bc 100644
--- a/config/grub2/default
+++ b/config/grub2/default
@@ -1,6 +1,6 @@
 GRUB_TIMEOUT=5
 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
 GRUB_DEFAULT=saved
-GRUB_CMDLINE_LINUX="rd.auto panic=10"
+GRUB_CMDLINE_LINUX="rd.auto panic=10 console=tty1"
 GRUB_DISABLE_RECOVERY="true"
 GRUB_BACKGROUND="/boot/grub/splash.png"
diff --git a/config/rootfiles/core/196/filelists/files b/config/rootfiles/core/196/filelists/files
index d760f7190a..1d83bafb51 100644
--- a/config/rootfiles/core/196/filelists/files
+++ b/config/rootfiles/core/196/filelists/files
@@ -1,4 +1,5 @@
 etc/rc.d/init.d/networking/red
+etc/rc.d/init.d/partresize
 etc/rc.d/init.d/wireguard
 srv/web/ipfire/cgi-bin/firewall.cgi
 srv/web/ipfire/cgi-bin/fwhosts.cgi
diff --git a/src/initscripts/system/partresize b/src/initscripts/system/partresize
index 832bc7237f..44c5d93071 100644
--- a/src/initscripts/system/partresize
+++ b/src/initscripts/system/partresize
@@ -87,7 +87,7 @@ case "${1}" in
 					# Enable also serial console on GRUB
 					echo "GRUB_TERMINAL=\"serial console\"" >> /etc/default/grub
 					echo "GRUB_SERIAL_COMMAND=\"serial --unit=0 --speed=115200\"" >> /etc/default/grub
-					sed -i -e "s|panic=10|& console=ttyS0,115200n8|g" /etc/default/grub
+					sed -i -e "s|console=tty1|console=ttyS0,115200n8|g" /etc/default/grub
 				fi
 
 				# Re-generate GRUB configuration
diff --git a/src/installer/main.c b/src/installer/main.c
index 9b9c630c35..ee5e056375 100644
--- a/src/installer/main.c
+++ b/src/installer/main.c
@@ -789,7 +789,7 @@ int main(int argc, char *argv[]) {
 		fprintf(f, "GRUB_SERIAL_COMMAND=\"serial --unit=0 --speed=%d\"\n", SERIAL_BAUDRATE);
 		fclose(f);
 
-		replace(DESTINATION_MOUNT_PATH "/etc/default/grub", "panic=10", "panic=10 console=ttyS0,115200n8");
+		replace(DESTINATION_MOUNT_PATH "/etc/default/grub", "console=tty1", "console=ttyS0,115200n8");
 	}
 
 	/* novga */


hooks/post-receive
--
IPFire 2.x development tree


                 reply	other threads:[~2025-06-30  6:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4bVxfM0c5qz2xXM@people01.haj.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox