From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:36025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glWea-0002UZ-68 for guix-patches@gnu.org; Mon, 21 Jan 2019 05:18:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glWeY-0003a0-Dg for guix-patches@gnu.org; Mon, 21 Jan 2019 05:18:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40174) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1glWeY-0003Zt-AF for guix-patches@gnu.org; Mon, 21 Jan 2019 05:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1glWeY-0006zp-5p for guix-patches@gnu.org; Mon, 21 Jan 2019 05:18:02 -0500 Subject: [bug#34154] [PATCH] /etc/os-release Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:35989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glWeH-0002OR-1f for guix-patches@gnu.org; Mon, 21 Jan 2019 05:17:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glWeG-0003RG-47 for guix-patches@gnu.org; Mon, 21 Jan 2019 05:17:45 -0500 Received: from flashner.co.il ([178.62.234.194]:42942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glWeF-0003QD-PU for guix-patches@gnu.org; Mon, 21 Jan 2019 05:17:44 -0500 Received: from localhost (unknown [188.120.128.87]) by flashner.co.il (Postfix) with ESMTPSA id 69967400E6 for ; Mon, 21 Jan 2019 10:17:41 +0000 (UTC) Date: Mon, 21 Jan 2019 12:17:40 +0200 From: Efraim Flashner Message-ID: <20190121101740.GB11658@macbook41> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xesSdrSSBC0PokLI" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34154@debbugs.gnu.org --xesSdrSSBC0PokLI Content-Type: multipart/mixed; boundary="5/uDoXvLw7AC5HRs" Content-Disposition: inline --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Currently GuixSD ships without an '/etc/os-release' file. This simple service aims to correct this. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-services-Add-os-release-file.patch" Content-Transfer-Encoding: quoted-printable =46rom 57918a48ee7c649470ab20cb7337bc5528df515e Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Mon, 21 Jan 2019 12:16:31 +0200 Subject: [PATCH] services: Add os-release-file. * gnu/services/base.scm (%os-release-file): New variable. (%base-services): Add it. --- gnu/services/base.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index d2baea0dd..7af3142cf 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -2294,6 +2294,17 @@ to handle." (requirement requirement) (name-servers name-servers))))) =20 +(define %os-release-file + (plain-file "os-release" + (string-append + "NAME=3D\"GNU Guix\"\n" + "PRETTY_NAME=3D\"GNU Guix\"\n" + "VERSION=3D\""((@ (guix packages) package-version) guix)"\= "\n" + "ID=3Dguix\n" + "HOME_URL=3D\"https://www.gnu.org/software/guix/\"\n" + "SUPPORT_URL=3D\"https://www.gnu.org/software/guix/help/\"= \n" + "BUG_REPORT_URL=3D\"mailto:bug-guix@gnu.org\"\n"))) + =0C (define %base-services ;; Convenience variable holding the basic services. @@ -2340,6 +2351,9 @@ to handle." (udev-configuration (rules (list lvm2 fuse alsa-utils crda)))) =20 + (service special-files-service-type + `(("/etc/os-release" ,%os-release-file))) + (service special-files-service-type `(("/bin/sh" ,(file-append (canonical-package bash) "/bin/sh")))))) --=20 2.20.1 --5/uDoXvLw7AC5HRs-- --xesSdrSSBC0PokLI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlxFnEQACgkQQarn3Mo9 g1EnjRAAkvxCLPzBnzylsjg6tmQbVKx/lYuDsk4CRQUAztBlT+viWsPxpmoeY6vz 9Y4nYQrDV5OrkoHg4OOv5Z8A/zFf2jjUZnDCFhut6UBmVzTIJgBdfA0o24m5CXZx 1arLiJmd8ZHYZFAP1y67nkDp/mn/dfP4AKd49eacuVTX9MBdrDL8hV1706WVsKHN ISl77IKIrLtTWF0QiqTEmFI0B/yyf/V1600dH9vM6rNYlt1ZGUrMrmEVhJ5grpke k2XJEuxsYVQJjXH831L1UxV0iV/C1yNUEHe0f2bhDdERVKNmjg9Tu4U9qS0KajNR Pr8vJzgYjuUy9unDaDmqh8u0+qjxm8Dy5khfiHb/6JrrAyW4r/6yaAkocje3DgNL SGgZXTk7SWHLywMVSeHkDOwvE9jSX06lhWoYaU2xs3Vp0k4UakUPt9rNwXW0Zajd IbOoq7j62USxHXtGB06vyLBsyHvHCSZ6NmfltnkujzE7znDImolxqX0y5kChFUhP /FrGmGj0A2o3Z0kBiiyaryzlgmuTY3219+ZFRhi052+8MEFbbhJqNS/jvMx7HBFp reURJhiTPPDK+GqiXufshUT2Dr+yGNM7xvwKQbPbU8VF9qE0Bb/xWwgGkz7ow1Pd fqYfHSpbh0Knhuz9/Y+K6C1t9dTod/2X2yTPeZwhCHC2C6lKl8o= =jKVI -----END PGP SIGNATURE----- --xesSdrSSBC0PokLI--