From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 05 08:20:30 2022 Received: (at submit) by debbugs.gnu.org; 5 Jun 2022 12:20:30 +0000 Received: from localhost ([127.0.0.1]:60223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxpF8-0005Iv-Hz for submit@debbugs.gnu.org; Sun, 05 Jun 2022 08:20:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:58716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxpF3-0005Ik-V8 for submit@debbugs.gnu.org; Sun, 05 Jun 2022 08:20:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxpEw-00015e-Sp for bug-guix@gnu.org; Sun, 05 Jun 2022 08:20:19 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:57851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxpEu-0000CG-Nv for bug-guix@gnu.org; Sun, 05 Jun 2022 08:20:18 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id E2B30320090A for ; Sun, 5 Jun 2022 08:20:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 05 Jun 2022 08:20:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; t=1654431612; x=1654518012; bh=7EABH3+Woo 3PYu9iBSY4O2Wyns+d6GhwHbV6n2NrrP4=; b=LrMGeVkEysfGPHDs6s68+4vDDF Jj0Gs/61F4Lk8qMaLmbqs/KYtbd/4LoaIUhT0Vhm9VBelgoDCl3fgLPtlbkn3zIE ppYHLsjW2Fdp0ptJYz2+z3oD9mqBs/+qz4iE4qrTN7YJXfqf9ZwKKH2x6+Ka6+5h WUOmh1xw9rngG/ewTJX1MJru2Day+Nghq5ppl8uq5IRr34EDuxfbrI1dD3FLctVX GK3Yc0RZ2iMzWGo552nxZ+ZJATez//Z+GZsR5FL1j8ozhdzVVTv9+mkaFMDdhvP6 D5YtvACduT95xQhWrLy3Oet+yhvaltv8iAc0RVMTaHzDEQB84bhRcsPLKYLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1654431612; x=1654518012; bh=7EABH3+Woo3PYu9iBSY4O2Wyns+d 6GhwHbV6n2NrrP4=; b=muo6PsLPdA4VfSRQTPiTFcoZXMnn9onQUYTn47iCbz7v 8xgftP7YPzkUTNUjF30EMoZI4n8fbrJTe338A5pfim6OOF1/fHY8AzgsYLIC56Si s1KYh0IXXCNbLZXYsG691E1yoBFuRuDM7FAj4DVd4lYF664erZRtvEUpRa7zZaKh fUteaM317rFf8uUK7BMwk+rPgaivXLUH1j4H/wMJa6aCpq3y6Yts0GsIWndtDtUa 4m5CXe2O6y0Tmuu6sxzSgT1Nd2/HNxLJseHcNVJZk1u2yllw01IPeOWvMX5k/snO POES5Dt3AVi9qtKHC2J1CLqOHImQNJrpt1IYKdVgdQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddttddgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhtgfgggfukfffvffosehtqhhmtd hhtdejnecuhfhrohhmpefrrghvvghlucfuhhhlhigrkhcuoehprdhshhhlhigrkhesphgr nhhthhgvrhigrdhorhhgqeenucggtffrrghtthgvrhhnpefgieffleefuedvteektdduhf ekheejgeejtdekveefheekhfdvkeejleefgfdttdenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehprdhshhhlhigrkhesphgrnhhthhgvrhigrd horhhg X-ME-Proxy: Feedback-ID: idda946d0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 5 Jun 2022 08:20:11 -0400 (EDT) From: Pavel Shlyak Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: gnu/system/install.scm includes (service uvesafb-service-type) in %installation-services on all architectures Message-Id: <9E6B1081-25F4-4357-ADBE-3161A2FA5960@pantherx.org> Date: Sun, 5 Jun 2022 15:20:09 +0300 To: bug-guix@gnu.org X-Mailer: Apple Mail (2.3696.100.31) Received-SPF: pass client-ip=64.147.123.21; envelope-from=p.shlyak@pantherx.org; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.7 (--) Reproducer: guix system image -t iso9660 gnu/system/install.scm This command fails on aarch64 host. It doesn=E2=80=99t if I manually = remove uvesafb-service-type from the list. It is impossible(and not = needed) to run uvesafb on non-x86 machines at the moment, so I think it = should be included only in x86_64 (and probably 32bit x86 as well) = builds.= From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 06 09:28:41 2022 Received: (at 55806) by debbugs.gnu.org; 6 Jun 2022 13:28:41 +0000 Received: from localhost ([127.0.0.1]:34735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyCme-0005Hy-UQ for submit@debbugs.gnu.org; Mon, 06 Jun 2022 09:28:41 -0400 Received: from jpoiret.xyz ([206.189.101.64]:45986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyCma-0005Hc-7J for 55806@debbugs.gnu.org; Mon, 06 Jun 2022 09:28:40 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id E32FB184F03; Mon, 6 Jun 2022 13:28:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1654522113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2dvBradgxq4RWsPig8MQ+o+V3fAkAseNJkhmsXTt1RQ=; b=NyLpRTSSWpVadlT/SMIM1skXK2GNetAHlNc8nd4Er+EM4AMOAaScoYurGf7Pn+8vtnBlip +Ynf4zYKJiZrRd2vnlfC6wMSKLHB9BsvXUQM1ir6DPu9E21VdmX48fOAQnCPVZnv9yh7z9 LQzxiYP9ZRgR0NRFv2HB+6HZmWg6oDCkoPOC0wPno0uMTVOcG5924yiA6plXi0gNWAhmTa Rv8q6ScDYufRAnj5jdkizDHzb9lRmJGSydNFGzhJodSwC+BwALokw/93kebyidN6PhaLPI XbCGUDwfoKFssb2dkc50/AoLgUVwmXuVBrCcgknlR5i6vpj/NgF+iy2glRqHkw== From: Josselin Poiret To: Pavel Shlyak , 55806@debbugs.gnu.org Subject: Re: bug#55806: gnu/system/install.scm includes (service uvesafb-service-type) in %installation-services on all architectures In-Reply-To: <9E6B1081-25F4-4357-ADBE-3161A2FA5960@pantherx.org> References: <9E6B1081-25F4-4357-ADBE-3161A2FA5960@pantherx.org> Date: Mon, 06 Jun 2022 15:28:31 +0200 Message-ID: <87czflx6o0.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-Spamd-Bar: / X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, Pavel Shlyak writes: > Reproducer: > guix system image -t iso9660 gnu/system/install.scm > This command fails on aarch64 host. It doesn’t if I manually remove uvesafb-service-type from the list. It is impossible(and not [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 T_SPF_HELO_TEMPERROR SPF: test of HELO record failed (temperror) -0.0 SPF_PASS SPF: sender matches SPF record 1.6 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: jpoiret.xyz (xyz)] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: 55806 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, Pavel Shlyak writes: > Reproducer: > guix system image -t iso9660 gnu/system/install.scm > This command fails on aarch64 host. It doesn’t if I manually remove uvesafb-service-type from the list. It is impossible(and not [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.6 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: jpoiret.xyz (xyz)] 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Hi, Pavel Shlyak writes: > Reproducer: > guix system image -t iso9660 gnu/system/install.scm > This command fails on aarch64 host. It doesn=E2=80=99t if I manually remo= ve uvesafb-service-type from the list. It is impossible(and not needed) to = run uvesafb on non-x86 machines at the moment, so I think it should be incl= uded only in x86_64 (and probably 32bit x86 as well) builds. I can definitely write a patch for that, it won't be worse that what we have right now. I wonder how we could handle the case when there's no KMS for a particular hardware combination (if that's possible), since kmscon requires that. FTR, we require kmscon to be able to display non-latin fonts such as CJK or arabic in the installer. Now that I think about it, if we have a hard requirement on KMS, we could just use a lightweight wayland compositor like cage to display the installer, which would likely simplify the process since we'd have more "usual" tools at our disposal. Best, --=20 Josselin Poiret From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 06 10:16:42 2022 Received: (at 55806) by debbugs.gnu.org; 6 Jun 2022 14:16:42 +0000 Received: from localhost ([127.0.0.1]:36411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyDX7-000516-GG for submit@debbugs.gnu.org; Mon, 06 Jun 2022 10:16:42 -0400 Received: from jpoiret.xyz ([206.189.101.64]:49790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyDX4-0004yZ-VZ for 55806@debbugs.gnu.org; Mon, 06 Jun 2022 10:16:39 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 40D54183B27; Mon, 6 Jun 2022 14:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1654524997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7KCBIKOtt1kaqLN6g6MU/dhkkaGQKPGVNYeeoNwgGdc=; b=m8ZS/s/sNSQuBrEdnB9/D2hu3rO9FLZsPI6RtDXgEg8zYXeRNI65UEs6Aezp67KXNziZHe 9ylbyZAosLec+cCnHl9tayFOQZQsvImgU88A9HI1sVhfqc010tlSsxT/2kkoi1oBqzzAEn MpwTMFn6jDGh0ov+Vg1bYevuKS4mI30Ig5Fby0zUbDg1UryZs91hxHiLag1HGfOHYUxAp+ zj2iC6mNy4UzMolc/alFbJNZos9QRH5t4rYuXT/fqTOsgHb16XdKfLkTz5VV/DF79X8gR+ k6f2i4z7g/hnUfWrb6c5u6fCunBlqSDVPvOYXnmcEQdPy0JRJKXoT5pGNDDfgA== From: Josselin Poiret To: Josselin Poiret , Pavel Shlyak , 55806@debbugs.gnu.org Subject: [PATCH] gnu: install: Add uvesafb service only on targets that support v86d. Date: Mon, 6 Jun 2022 16:16:34 +0200 Message-Id: <20220606141634.16295-1-dev@jpoiret.xyz> In-Reply-To: <87czflx6o0.fsf@jpoiret.xyz> References: <87czflx6o0.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-Spamd-Bar: / X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/system/install.scm (%installation-services): Refactor into a procedure, so that it can capture the system it's installing for. Conditionally add uvesafb-service-type based on whether v86d is sup [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.6 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: jpoiret.xyz (xyz)] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: 55806 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/system/install.scm (%installation-services): Refactor into a procedure, so that it can capture the system it's installing for. Conditionally add uvesafb-service-type based on whether v86d is sup [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.6 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: jpoiret.xyz (xyz)] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * gnu/system/install.scm (%installation-services): Refactor into a procedure, so that it can capture the system it's installing for. Conditionally add uvesafb-service-type based on whether v86d is supported by the target architecture. (installation-os)[services]: Use the %installation-service procedure. --- gnu/system/install.scm | 245 +++++++++++++++++++++-------------------- 1 file changed, 128 insertions(+), 117 deletions(-) diff --git a/gnu/system/install.scm b/gnu/system/install.scm index e46c1d34dd..5e4215864e 100644 --- a/gnu/system/install.scm +++ b/gnu/system/install.scm @@ -31,8 +31,10 @@ (define-module (gnu system install) #:use-module (guix store) #:use-module (guix monads) #:use-module (guix modules) - #:use-module ((guix packages) #:select (package-version)) + #:use-module ((guix packages) #:select (package-version supported-package?)) + #:use-module (guix platform) #:use-module ((guix store) #:select (%store-prefix)) + #:use-module (guix utils) #:use-module (gnu installer) #:use-module (gnu system locale) #:use-module (gnu services avahi) @@ -305,7 +307,10 @@ (define uvesafb-service-type "Load the @code{uvesafb} kernel module with the right options.") (default-value #t))) -(define %installation-services +(define* (%installation-services #:key (system (or (and=> + (%current-target-system) + platform-target->system) + (%current-system)))) ;; List of services of the installation system. (let ((motd (plain-file "motd" " \x1b[1;37mWelcome to the installation of GNU Guix!\x1b[0m @@ -322,120 +327,126 @@ (define (normal-tty tty) (define bare-bones-os (load "examples/bare-bones.tmpl")) - (list (service virtual-terminal-service-type) - - (service kmscon-service-type - (kmscon-configuration - (virtual-terminal "tty1") - (login-program (installer-program)))) - - (login-service (login-configuration - (motd motd))) - - ;; Documentation. The manual is in UTF-8, but - ;; 'console-font-service' sets up Unicode support and loads a font - ;; with all the useful glyphs like em dash and quotation marks. - (service documentation-service-type "tty2") - - ;; Documentation add-on. - %configuration-template-service - - ;; A bunch of 'root' ttys. - (normal-tty "tty3") - (normal-tty "tty4") - (normal-tty "tty5") - (normal-tty "tty6") - - ;; The usual services. - (syslog-service) - - ;; Use the Avahi daemon to discover substitute servers on the local - ;; network. It can be faster than fetching from remote servers. - (service avahi-service-type) - - ;; The build daemon. Register the default substitute server key(s) - ;; as trusted to allow the installation process to use substitutes by - ;; default. - (service guix-service-type - (guix-configuration (authorize-key? #t) - (guix (current-guix)))) - - ;; Start udev so that useful device nodes are available. - ;; Use device-mapper rules for cryptsetup & co; enable the CRDA for - ;; regulations-compliant WiFi access. - (udev-service #:rules (list lvm2 crda)) - - ;; Add the 'cow-store' service, which users have to start manually - ;; since it takes the installation directory as an argument. - (cow-store-service) - - ;; Install Unicode support and a suitable font. - (service console-font-service-type - (map (match-lambda - ("tty2" - ;; Use a font that contains characters such as - ;; curly quotes as found in the manual. - '("tty2" . "LatGrkCyr-8x16")) - (tty - ;; Use a font that doesn't have more than 256 - ;; glyphs so that we can use colors with varying - ;; brightness levels (see note in setfont(8)). - `(,tty . "lat9u-16"))) - '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6"))) - - ;; To facilitate copy/paste. - (service gpm-service-type) - - ;; Add an SSH server to facilitate remote installs. - (service openssh-service-type - (openssh-configuration - (port-number 22) - (permit-root-login #t) - ;; The root account is passwordless, so make sure - ;; a password is set before allowing logins. - (allow-empty-passwords? #f) - (password-authentication? #t) - - ;; Don't start it upfront. - (%auto-start? #f))) - - ;; Since this is running on a USB stick with a overlayfs as the root - ;; file system, use an appropriate cache configuration. - (nscd-service (nscd-configuration - (caches %nscd-minimal-caches))) - - ;; Having /bin/sh is a good idea. In particular it allows Tramp - ;; connections to this system to work. - (service special-files-service-type - `(("/bin/sh" ,(file-append bash "/bin/sh")))) - - ;; Loopback device, needed by OpenSSH notably. - (service static-networking-service-type - (list %loopback-static-networking)) - - (service wpa-supplicant-service-type) - (dbus-service) - (service connman-service-type - (connman-configuration - (disable-vpn? #t))) - - ;; Keep a reference to BARE-BONES-OS to make sure it can be - ;; installed without downloading/building anything. Also keep the - ;; things needed by 'profile-derivation' to minimize the amount of - ;; download. - (service gc-root-service-type - (append - (list bare-bones-os - glibc-utf8-locales - texinfo - guile-3.0) - %default-locale-libcs)) - - ;; Machines without Kernel Mode Setting (those with many old and - ;; current AMD GPUs, SiS GPUs, ...) need uvesafb to show the GUI - ;; installer. Some may also need a kernel parameter like nomodeset - ;; or vga=793, but we leave that for the user to specify in GRUB. - (service uvesafb-service-type)))) + (append + ;; Generic services + (list (service virtual-terminal-service-type) + + (service kmscon-service-type + (kmscon-configuration + (virtual-terminal "tty1") + (login-program (installer-program)))) + + (login-service (login-configuration + (motd motd))) + + ;; Documentation. The manual is in UTF-8, but + ;; 'console-font-service' sets up Unicode support and loads a font + ;; with all the useful glyphs like em dash and quotation marks. + (service documentation-service-type "tty2") + + ;; Documentation add-on. + %configuration-template-service + + ;; A bunch of 'root' ttys. + (normal-tty "tty3") + (normal-tty "tty4") + (normal-tty "tty5") + (normal-tty "tty6") + + ;; The usual services. + (syslog-service) + + ;; Use the Avahi daemon to discover substitute servers on the local + ;; network. It can be faster than fetching from remote servers. + (service avahi-service-type) + + ;; The build daemon. Register the default substitute server key(s) + ;; as trusted to allow the installation process to use substitutes by + ;; default. + (service guix-service-type + (guix-configuration (authorize-key? #t) + (guix (current-guix)))) + + ;; Start udev so that useful device nodes are available. + ;; Use device-mapper rules for cryptsetup & co; enable the CRDA for + ;; regulations-compliant WiFi access. + (udev-service #:rules (list lvm2 crda)) + + ;; Add the 'cow-store' service, which users have to start manually + ;; since it takes the installation directory as an argument. + (cow-store-service) + + ;; Install Unicode support and a suitable font. + (service console-font-service-type + (map (match-lambda + ("tty2" + ;; Use a font that contains characters such as + ;; curly quotes as found in the manual. + '("tty2" . "LatGrkCyr-8x16")) + (tty + ;; Use a font that doesn't have more than 256 + ;; glyphs so that we can use colors with varying + ;; brightness levels (see note in setfont(8)). + `(,tty . "lat9u-16"))) + '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6"))) + + ;; To facilitate copy/paste. + (service gpm-service-type) + + ;; Add an SSH server to facilitate remote installs. + (service openssh-service-type + (openssh-configuration + (port-number 22) + (permit-root-login #t) + ;; The root account is passwordless, so make sure + ;; a password is set before allowing logins. + (allow-empty-passwords? #f) + (password-authentication? #t) + + ;; Don't start it upfront. + (%auto-start? #f))) + + ;; Since this is running on a USB stick with a overlayfs as the root + ;; file system, use an appropriate cache configuration. + (nscd-service (nscd-configuration + (caches %nscd-minimal-caches))) + + ;; Having /bin/sh is a good idea. In particular it allows Tramp + ;; connections to this system to work. + (service special-files-service-type + `(("/bin/sh" ,(file-append bash "/bin/sh")))) + + ;; Loopback device, needed by OpenSSH notably. + (service static-networking-service-type + (list %loopback-static-networking)) + + (service wpa-supplicant-service-type) + (dbus-service) + (service connman-service-type + (connman-configuration + (disable-vpn? #t))) + + ;; Keep a reference to BARE-BONES-OS to make sure it can be + ;; installed without downloading/building anything. Also keep the + ;; things needed by 'profile-derivation' to minimize the amount of + ;; download. + (service gc-root-service-type + (append + (list bare-bones-os + glibc-utf8-locales + texinfo + guile-3.0) + %default-locale-libcs))) + + ;; Specific system services + + ;; Machines without Kernel Mode Setting (those with many old and + ;; current AMD GPUs, SiS GPUs, ...) need uvesafb to show the GUI + ;; installer. Some may also need a kernel parameter like nomodeset + ;; or vga=793, but we leave that for the user to specify in GRUB. + `(,@(if (supported-package? v86d system) + (list (service uvesafb-service-type)) + '()))))) (define %issue ;; Greeting. @@ -499,7 +510,7 @@ (define installation-os (comment "Guest of GNU")))) (issue %issue) - (services %installation-services) + (services (%installation-services)) ;; We don't need setuid programs, except for 'passwd', which can be handy ;; if one is to allow remote SSH login to the machine being installed. -- 2.36.1 From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 06 12:09:44 2022 Received: (at 55806) by debbugs.gnu.org; 6 Jun 2022 16:09:44 +0000 Received: from localhost ([127.0.0.1]:36554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyFIV-0008Om-QA for submit@debbugs.gnu.org; Mon, 06 Jun 2022 12:09:43 -0400 Received: from pelzflorian.de ([5.45.111.108]:49736 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyFIU-0008Od-6d for 55806@debbugs.gnu.org; Mon, 06 Jun 2022 12:09:43 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id B6A633605C9; Mon, 6 Jun 2022 18:09:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1654531780; bh=PM9bWki66tHfBF1e7/CSqPzpHKAEQj8Va2IkvS6usVQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=D555s3oUhD0My6OzHDm0JV8yfZ7hP1xVa9Zwo8Po0EQ2AEmXk6G58Ty1uZsZH/fwi OcFxzrcHdR5Yk+YZePd3nyYeerDCVYzxOpsPqfyJfYTMMELpBECXxqlTRlGYh0EA3Z J+ykc2u86SsNZzNAgKQhTZQS1U7Nhp41pV1B7bIk= Date: Mon, 6 Jun 2022 18:09:31 +0200 From: "pelzflorian (Florian Pelz)" To: Josselin Poiret Subject: Re: bug#55806: [PATCH] gnu: install: Add uvesafb service only on targets that support v86d. Message-ID: <20220606155646.4ijd4isr5gzenm5j@pelzflorian.localdomain> References: <87czflx6o0.fsf@jpoiret.xyz> <20220606141634.16295-1-dev@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220606141634.16295-1-dev@jpoiret.xyz> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55806 Cc: Pavel Shlyak , 55806@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thank you so much Josselin. I didn't know how to do this. At the time building for ARM was no priority. On Mon, Jun 06, 2022 at 04:16:34PM +0200, Josselin Poiret via Bug reports for GNU Guix wrote: > - (service guix-service-type > - (guix-configuration (authorize-key? #t) > - (guix (current-guix)))) I had to remove the (guix (current-guix)) but now `guix system image -t iso9660 gnu/system/install.scm` builds on a rock64 aarch64 machine, but it is still building and I could not yet test in qemu. I have not tried the embedded-installation image. (I also had to disable tests on guile-fibers, but it is unrelated to the bug and may be needed only on rock64, which has other unrelated hangups when much RAM is used.) I don't commit much except translations, but guess I should remove the not working %host-type shenanigans in uvesafb-service-type, add your copyright line and push. I will do so when there are no other comments. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 06 13:15:56 2022 Received: (at 55806) by debbugs.gnu.org; 6 Jun 2022 17:15:56 +0000 Received: from localhost ([127.0.0.1]:36673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyGKa-0004ga-7O for submit@debbugs.gnu.org; Mon, 06 Jun 2022 13:15:56 -0400 Received: from jpoiret.xyz ([206.189.101.64]:35532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyGKV-0004gO-94 for 55806@debbugs.gnu.org; Mon, 06 Jun 2022 13:15:55 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 89077184F29; Mon, 6 Jun 2022 17:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1654535750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CkLo706Otg5ct9bGCIPBSTFHYa+rbTKeElHroMY3XtM=; b=Fo2ALkckG1ryZIutfiy1yRlOiHBohOKDpNWBUQjELaV41ecprt/B6EkdTSg+BH/TNFmWW5 08rVS5EvkCeTD/vlgjJwMjVigvz2wYmbwcG1QdLq3tu9TEZ2tec81H7S9RwpxqiVqMfsTC tKEVK26VKKtGa1tW6qigMB8zYMp5vCdAtgptZsRJYs1O2tFWP7SUT9hKC4pOG+aqhcMA+3 3wvAJ/tRgrlZOLcv0t+e558qTFRoCgvaiXX5C+qBwBGdNOuBfNhqVJGfscNr813e9Bzlvc 7tlY6aLXMY3FjLqIzLhugXBPd1M6NygIRzLGLF9YvnmKENnjvBgG6acnUtlW9w== From: Josselin Poiret To: "pelzflorian (Florian Pelz)" Subject: Re: bug#55806: [PATCH] gnu: install: Add uvesafb service only on targets that support v86d. In-Reply-To: <20220606155646.4ijd4isr5gzenm5j@pelzflorian.localdomain> References: <87czflx6o0.fsf@jpoiret.xyz> <20220606141634.16295-1-dev@jpoiret.xyz> <20220606155646.4ijd4isr5gzenm5j@pelzflorian.localdomain> Date: Mon, 06 Jun 2022 19:15:48 +0200 Message-ID: <87a6apww57.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-Spamd-Bar: / X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello Florian, "pelzflorian (Florian Pelz)" writes: > On Mon, Jun 06, 2022 at 04:16:34PM +0200, Josselin Poiret via Bug reports for GNU Guix wrote: >> - (service guix-service-type >> - (guix-configuration (authorize-key? #t) >> - (guix (current-guix))) [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.6 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: jpoiret.xyz (xyz)] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: 55806 Cc: Pavel Shlyak , 55806@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello Florian, "pelzflorian (Florian Pelz)" writes: > On Mon, Jun 06, 2022 at 04:16:34PM +0200, Josselin Poiret via Bug reports for GNU Guix wrote: >> - (service guix-service-type >> - (guix-configuration (authorize-key? #t) >> - (guix (current-guix))) [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.6 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: jpoiret.xyz (xyz)] 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Hello Florian, "pelzflorian (Florian Pelz)" writes: > On Mon, Jun 06, 2022 at 04:16:34PM +0200, Josselin Poiret via Bug reports for GNU Guix wrote: >> - (service guix-service-type >> - (guix-configuration (authorize-key? #t) >> - (guix (current-guix)))) > > I had to remove the (guix (current-guix)) but now `guix system image > -t iso9660 gnu/system/install.scm` builds on a rock64 aarch64 machine, > but it is still building and I could not yet test in qemu. I have not > tried the embedded-installation image. Silly me, I really should move some of my WIP patches to other branches to avoid these issues :( Feel free to commit with the changes you mentioned, and thanks for the tests (I only checked minimally with cross-compilation since I don't have any aarch64 machines)! Best, -- Josselin Poiret From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 07 06:50:35 2022 Received: (at 55806-done) by debbugs.gnu.org; 7 Jun 2022 10:50:35 +0000 Received: from localhost ([127.0.0.1]:38415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyWnD-0000gU-1X for submit@debbugs.gnu.org; Tue, 07 Jun 2022 06:50:35 -0400 Received: from pelzflorian.de ([5.45.111.108]:50724 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyWnA-0000gI-O5 for 55806-done@debbugs.gnu.org; Tue, 07 Jun 2022 06:50:34 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 0BFA93605C9; Tue, 7 Jun 2022 12:50:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1654599026; bh=Dv2odRqIkKAO3h8HkGQR/aPyoajeTqK1+dZDmZiH7uM=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=twPNtPTJAIUb3nwcsALghVrXhpXBQ9/m7C6PQCXAIFRklj3eNFKfgpflOsG1dJ2Wx lv5bj7FV0ltFWP5HVrbK4EKof9t38aDUwEu6yWV5oWDM51WpTwx2zIfRg+t+VZkhcx TO0tyOWFXZVnCy2UJlOhCFv1QyHp2roFlnVCcLDs= Date: Tue, 7 Jun 2022 12:50:09 +0200 From: "pelzflorian (Florian Pelz)" To: Josselin Poiret Subject: Re: bug#55806: [PATCH] gnu: install: Add uvesafb service only on targets that support v86d. Message-ID: <20220607105009.jmjbw6ndxptsf2m7@pelzflorian.localdomain> References: <87czflx6o0.fsf@jpoiret.xyz> <20220606141634.16295-1-dev@jpoiret.xyz> <20220606155646.4ijd4isr5gzenm5j@pelzflorian.localdomain> <87a6apww57.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a6apww57.fsf@jpoiret.xyz> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55806-done Cc: 55806-done@debbugs.gnu.org, Pavel Shlyak X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Pushed as 0aa43117907581779cf3f343c6175d98369b7e07. Closing, even though I didn’t manage to boot it on QEMU. Ideally Guix System would run as seemlessly as the Ubuntu ARM cdimages work on Macs, but I can’t test and it is a different issue. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 07 07:05:45 2022 Received: (at 55806-done) by debbugs.gnu.org; 7 Jun 2022 11:05:45 +0000 Received: from localhost ([127.0.0.1]:38505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyX1d-0003Im-Vo for submit@debbugs.gnu.org; Tue, 07 Jun 2022 07:05:45 -0400 Received: from pelzflorian.de ([5.45.111.108]:50746 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyX1c-0003Id-Aw for 55806-done@debbugs.gnu.org; Tue, 07 Jun 2022 07:05:29 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id B4BE73605C9; Tue, 7 Jun 2022 13:05:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1654599926; bh=xURYWJ0yYyX9bJTbr/MvwqQ5Iqzf8+geD8UbH2z9POI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=AOOl2NfAJbpsHIrbI0bA2efOap290tAQ3SwsDQAzOhx1b8Rc20kp3ePjuwUVWswod U+TF8VusfasQ+YeoWxWNC+iFro+r4NWsmUtWEvbYjd/tOTRxTkaFg80Nh/DS24LrcK AiMpsywO/mZEhdvi/ybe0pKHWJGxk0StmIhLI3Xs= Date: Tue, 7 Jun 2022 13:05:19 +0200 From: "pelzflorian (Florian Pelz)" To: Josselin Poiret Subject: Re: bug#55806: [PATCH] gnu: install: Add uvesafb service only on targets that support v86d. Message-ID: <20220607110519.xgz5n2jedekstb64@pelzflorian.localdomain> References: <87czflx6o0.fsf@jpoiret.xyz> <20220606141634.16295-1-dev@jpoiret.xyz> <20220606155646.4ijd4isr5gzenm5j@pelzflorian.localdomain> <87a6apww57.fsf@jpoiret.xyz> <20220607105009.jmjbw6ndxptsf2m7@pelzflorian.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220607105009.jmjbw6ndxptsf2m7@pelzflorian.localdomain> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55806-done Cc: 55806-done@debbugs.gnu.org, Pavel Shlyak X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Jun 07, 2022 at 12:50:26PM +0200, pelzflorian (Florian Pelz) wrote: > Ideally Guix System would run as seemlessly as the Ubuntu ARM cdimages > work on Macs, but I can’t test and it is a different issue. *on QEMU on Macs From unknown Tue Jun 17 01:44:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 05 Jul 2022 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator