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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DD5BA158046 for ; Sun, 13 Oct 2024 20:33:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A7F8E0884; Sun, 13 Oct 2024 20:33:59 +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 071AEE0884 for ; Sun, 13 Oct 2024 20:33:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 4D8DD3430EF for ; Sun, 13 Oct 2024 20:33:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 96CCC1F64 for ; Sun, 13 Oct 2024 20:33:50 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1728851455.82c8ee5c185c520d80fda3319b260852ebc1ceb2.dilfridge@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: targets/support/ X-VCS-Repository: proj/catalyst X-VCS-Files: targets/support/diskimagefs-update.sh X-VCS-Directories: targets/support/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: 82c8ee5c185c520d80fda3319b260852ebc1ceb2 X-VCS-Branch: master Date: Sun, 13 Oct 2024 20:33:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bf06079d-07f1-40ed-9822-4ae8a51123e4 X-Archives-Hash: 5496b4d0cf4f4e35f739455a961d5e42 commit: 82c8ee5c185c520d80fda3319b260852ebc1ceb2 Author: Andreas K. Hüttel gentoo org> AuthorDate: Sun Oct 13 20:16:54 2024 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Sun Oct 13 20:30:55 2024 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=82c8ee5c Enable all ethernet network adaptors with dhcp by default Signed-off-by: Andreas K. Hüttel gentoo.org> targets/support/diskimagefs-update.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/targets/support/diskimagefs-update.sh b/targets/support/diskimagefs-update.sh index 45d870a5..5204a31f 100755 --- a/targets/support/diskimagefs-update.sh +++ b/targets/support/diskimagefs-update.sh @@ -16,6 +16,17 @@ if [[ $(readlink /etc/portage/make.profile) == *systemd* ]] ; then # generic - an image with no means of logging in... needs postprocessing # no services are started +configure_dhcp() { + echo "Configuring DHCP on all ethernet devices" + cat > /etc/systemd/network/default.network <<'END' +[Match] +Name=en* + +[Network] +DHCP=yes +END +} + echo "Generating /etc/locale.gen" cat > /etc/locale.gen <