From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1es99n-00076L-GB for guix-patches@gnu.org; Sat, 03 Mar 2018 10:33:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1es99i-0007e6-Jh for guix-patches@gnu.org; Sat, 03 Mar 2018 10:33:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1es99i-0007dx-FX for guix-patches@gnu.org; Sat, 03 Mar 2018 10:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1es99i-0000MN-3Q for guix-patches@gnu.org; Sat, 03 Mar 2018 10:33:02 -0500 Subject: [bug#30604] [PATCH v8 2/7] linux-modules: Add install-modules. Resent-Message-ID: Date: Sat, 3 Mar 2018 16:32:12 +0100 From: Danny Milosavljevic Message-ID: <20180303163212.40f17905@scratchpost.org> In-Reply-To: <20180303135533.6112-3-dannym@scratchpost.org> References: <20180302153408.14091-1-dannym@scratchpost.org> <20180303135533.6112-1-dannym@scratchpost.org> <20180303135533.6112-3-dannym@scratchpost.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/bCYi916gqBvqPpM=6.JlJQN"; protocol="application/pgp-signature" 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: 30604@debbugs.gnu.org --Sig_/bCYi916gqBvqPpM=6.JlJQN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable > + ;; Note: there's only one devname and then only one (char-majo= r|block-major). > + (for-each > + (match-lambda > + (((? (cut string-prefix? "devname:" <>) alias) . value) > + (set! devname (string-drop value (string-length "devname:")= ))) > + (((? (cut string-prefix? "char-major-" <>) alias) . value) > + (let ((parts (string-tokenize %not-dash))) > + (match parts > + ((a b major minor) > + (format port "~a ~a ~a:~a\n" devname "c" major mi= nor))))) > + (((? (cut string-prefix? "block-major-" <>) alias) . value) > + (let ((parts (string-tokenize %not-dash))) > + (match parts > + ((a b major minor) > + (format port "~a ~a ~a:~a\n" devname "b" major mi= nor))))) > + (_ #f)) > + aliases)))))) Probably better to be more careful that devname is set early enough. --Sig_/bCYi916gqBvqPpM=6.JlJQN Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlqav/wACgkQ5xo1VCww uqV50wf/VBhDH1xsp4i365g/suHyV27f38/lFep7ohe11uMGlKxolmCCaGoo8/bC lhVuRnGme8dWV3DaKW8Ih+DE82FkZr+EulBxK9MmPxuw3FRCZDqw058PPkjM+pAM a09O8uj3qHTsWhNZzKA+Mf0o442+Pz4MwQE2JnX1eEuFltTzBrVAKjIsgbHgmRfh OAfPnmmBK3lNRTDB/qLvc6U1iuZOP+JduRr05kr7cjOFDZ2Rr0Q1dgB034GXwlj0 3dCw2izbdKc6xhGP5wjDt6Hradg+ReglrDgLzh0mXY0hq9aUIvXxj9ngA3Q05gu1 5n9B45TPg7OOKL7hsHumczfWFXLBLA== =EtMr -----END PGP SIGNATURE----- --Sig_/bCYi916gqBvqPpM=6.JlJQN--