From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Packaging CDEmu and VHBA kernel module Date: Sun, 14 Apr 2019 19:23:08 +0200 Message-ID: <20190414192308.7330f62f@scratchpost.org> References: <87o97g1v4n.fsf@ambrevar.xyz> <87k1i27j5m.fsf@gmail.com> <87tvghfcmi.fsf@ambrevar.xyz> <87wojwa4si.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/ygr0oQRM7CHdDqA=MxpcKIr"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:43219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFiqa-0002Hc-Sg for guix-devel@gnu.org; Sun, 14 Apr 2019 13:23:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFiqa-000881-2d for guix-devel@gnu.org; Sun, 14 Apr 2019 13:23:16 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:35440) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFiqZ-00086p-Pn for guix-devel@gnu.org; Sun, 14 Apr 2019 13:23:16 -0400 In-Reply-To: <87wojwa4si.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: guix-devel --Sig_/ygr0oQRM7CHdDqA=MxpcKIr Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Pierre, On Sun, 14 Apr 2019 19:13:33 +0200 Pierre Neidhardt wrote: > Could we configure a service that automatically inserts the kernel > module and sets up the right udev rule? Danny? Probably, but that's not the official way to do those things in modern Linu= x. Linux is supposed to automatically load modules it needs (if it needs them and they are indeed built as a module) on first access of the device file. So we'd have to extend the generator of /run/booted-system/kernel/lib/modul= es in guix to take a list of packages and union those, put the result in the directory mentioned here and run depmod on it. I have no idea where that generator is in guix.=20 In order to set up udev, just add an udev service-extension in your service (see gnu/services/sane.scm for an example). --Sig_/ygr0oQRM7CHdDqA=MxpcKIr Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlyzbHwACgkQ5xo1VCww uqW7fQf/Z0d5uLuK5FO9X9TWjSOB67L+2awvbpI0LVbEm/EOs9cONHRNceNJKz+Q W5k+lDNGbDoL+8yPM6oAGDNK6G5gHSUxF/OhNnJtN1lQ251nwVsEBgEqofovWkl5 NIPZVPoWn6+DWv967zu2z/eTQgJEGgOgLHn6rrUXj3gxlmLkGEbGFEYH6lu1KiNb U0BDj3SNGyYMOONxJUOL8OpfUAFo+tW2D+Idehl5IZoDQyMfqzpB7FSJ+8r28+Bq CEHdkHDkM7MDASgFt0Lxtav5MKBJhPAV2F3wJOupfB7lLfeycIqjE0PCXBxNRQMG 09RTKWqkX4VwO1emh7BEeTUxEEhSqw== =6qN9 -----END PGP SIGNATURE----- --Sig_/ygr0oQRM7CHdDqA=MxpcKIr--