From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9431A15802F for ; Wed, 29 Mar 2023 19:31:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CCDB2BC015; Wed, 29 Mar 2023 19:31:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 03C3E2BC009 for ; Wed, 29 Mar 2023 19:31:12 +0000 (UTC) From: Ben Kohler To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH 02/10] reorganize motd files Date: Wed, 29 Mar 2023 14:30:52 -0500 Message-Id: <20230329193100.2976079-2-bkohler@gentoo.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230329193100.2976079-1-bkohler@gentoo.org> References: <20230329193100.2976079-1-bkohler@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 4dcfc154-69ab-423b-8746-9d2461c5501d X-Archives-Hash: 77e10890890e5313513e160e8a7ae9c6 Having all 3 livecd targets inherit generic.motd.txt AND minimal.motd.txt was causing some duplication of messages. Now all 3 targets inherit generic and their own single motd file. Signed-off-by: Ben Kohler --- livecd/files/livecd.motd.txt | 8 +++++++- livecd/files/minimal.motd.txt | 2 +- livecd/files/universal.motd.txt | 12 ++++++++++-- targets/support/livecdfs-update.sh | 6 ++---- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/livecd/files/livecd.motd.txt b/livecd/files/livecd.motd.txt index a37f53cb..029c2f6e 100644 --- a/livecd/files/livecd.motd.txt +++ b/livecd/files/livecd.motd.txt @@ -1,5 +1,11 @@ +The latest version of the Handbook is always available from the Gentoo web +site by typing "links https://wiki.gentoo.org/wiki/Handbook". + +To start an ssh server on this system, type "/etc/init.d/sshd start". If you +need to log in remotely as root, type "passwd root" to reset root's password +to a known value. + Please report any bugs you find to https://bugs.gentoo.org. Be sure to include detailed information about how to reproduce the bug you are reporting. Thank you for using Gentoo Linux! - diff --git a/livecd/files/minimal.motd.txt b/livecd/files/minimal.motd.txt index 3058b854..029c2f6e 100644 --- a/livecd/files/minimal.motd.txt +++ b/livecd/files/minimal.motd.txt @@ -7,5 +7,5 @@ to a known value. Please report any bugs you find to https://bugs.gentoo.org. Be sure to include detailed information about how to reproduce the bug you are reporting. -Thank you for using Gentoo Linux! +Thank you for using Gentoo Linux! diff --git a/livecd/files/universal.motd.txt b/livecd/files/universal.motd.txt index 403b8729..416d59d8 100644 --- a/livecd/files/universal.motd.txt +++ b/livecd/files/universal.motd.txt @@ -1,5 +1,13 @@ +The latest version of the Handbook is always available from the Gentoo web +site by typing "links https://wiki.gentoo.org/wiki/Handbook". Stage tarball(s), distfiles and packages can be found in /mnt/cdrom/. -You can view the networkless installation instructions for this release by -typing "links /mnt/cdrom/docs/handbook/html". +To start an ssh server on this system, type "/etc/init.d/sshd start". If you +need to log in remotely as root, type "passwd root" to reset root's password +to a known value. + +Please report any bugs you find to https://bugs.gentoo.org. Be sure to include +detailed information about how to reproduce the bug you are reporting. + +Thank you for using Gentoo Linux! diff --git a/targets/support/livecdfs-update.sh b/targets/support/livecdfs-update.sh index dafe4c3a..1be4baea 100755 --- a/targets/support/livecdfs-update.sh +++ b/targets/support/livecdfs-update.sh @@ -128,8 +128,7 @@ fi # Tweak the MOTD for Gentoo releases case ${clst_livecd_type} in gentoo-release-universal) - cat /etc/generic.motd.txt /etc/universal.motd.txt \ - /etc/minimal.motd.txt > /etc/motd + cat /etc/generic.motd.txt /etc/universal.motd.txt > /etc/motd sed -i 's:^##GREETING:Welcome to the Gentoo Linux Universal Installation CD!:' /etc/motd ;; gentoo-release-minimal) @@ -137,8 +136,7 @@ case ${clst_livecd_type} in sed -i 's:^##GREETING:Welcome to the Gentoo Linux Minimal Installation CD!:' /etc/motd ;; gentoo-release-live*) - cat /etc/generic.motd.txt \ - /etc/minimal.motd.txt /etc/livecd.motd.txt > /etc/motd + cat /etc/generic.motd.txt /etc/livecd.motd.txt > /etc/motd sed -i -e 's:^##GREETING:Welcome to the Gentoo Linux LiveCD!:' /etc/motd ;; esac -- 2.40.0