Report forwarded
to guix-patches@gnu.org: bug#77004; Package guix-patches.
(Fri, 14 Mar 2025 01:17:02 GMT) (full text, mbox, link).
Acknowledgement sent
to nathan <nathan_mail@nborghese.com>:
New bug report received and forwarded. Copy sent to guix-patches@gnu.org.
(Fri, 14 Mar 2025 01:17:02 GMT) (full text, mbox, link).
Subject: Re: [bug#77004] [PATCH] gnu: libvirt: Fix path to Linux modules,
[PATCH] gnu: libvirt: Fix path to Linux modules
Date: Sun, 16 Mar 2025 23:19:17 +0900
Hi,
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
[...]
>> @@ -508,11 +508,13 @@ (define (libvirt-shepherd-service config)
>> (list (string-append #$libvirt "/sbin/libvirtd")
>> "-f" #$config-file
>> #$@(if listen-tcp? '("--listen") '()))
>> - ;; For finding qemu and ip binaries.
>> + ;; For finding qemu, ip binaries, and kernel modules
>> #:environment-variables
>> - (list (string-append
>> - "PATH=/run/current-system/profile/bin:"
>> - "/run/current-system/profile/sbin"))))
>> + (list
>> + (string-append
>> + "PATH=/run/current-system/profile/bin:"
>> + "/run/current-system/profile/sbin")
>> + "LINUX_MODULE_DIRECTORY=/run/booted-system/kernel/lib/modules")))
>
> I suppose only modules from the booted kernel makes sense to be used,
> hence the /run/booted-system instead of /run/current-system as Nix uses?
I've kept /run/booted-system, made some light cosmetic changes including
in the GNU Changelog of the commit message (have a look in commit
856fa9a4e4), and pushed!
--
Thanks,
Maxim
Information forwarded
to guix-patches@gnu.org: bug#77004; Package guix-patches.
(Sun, 16 Mar 2025 16:05:02 GMT) (full text, mbox, link).
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>, 77004@debbugs.gnu.org
Subject: Re: [bug#77004] [PATCH] gnu: libvirt: Fix path to Linux modules
Date: Sun, 16 Mar 2025 16:03:57 +0000
Actually, Nix uses /run/booted-system too. They fixed it in a later patch that I didn't bother to link
https://github.com/NixOS/nixpkgs/pull/287544
Thanks for applying it
On 3/16/25 2:19 PM, Maxim Cournoyer wrote:
> Hi,
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>
> [...]
>
>>> @@ -508,11 +508,13 @@ (define (libvirt-shepherd-service config)
>>> (list (string-append #$libvirt "/sbin/libvirtd")
>>> "-f" #$config-file
>>> #$@(if listen-tcp? '("--listen") '()))
>>> - ;; For finding qemu and ip binaries.
>>> + ;; For finding qemu, ip binaries, and kernel modules
>>> #:environment-variables
>>> - (list (string-append
>>> - "PATH=/run/current-system/profile/bin:"
>>> - "/run/current-system/profile/sbin"))))
>>> + (list
>>> + (string-append
>>> + "PATH=/run/current-system/profile/bin:"
>>> + "/run/current-system/profile/sbin")
>>> + "LINUX_MODULE_DIRECTORY=/run/booted-system/kernel/lib/modules")))
>>
>> I suppose only modules from the booted kernel makes sense to be used,
>> hence the /run/booted-system instead of /run/current-system as Nix uses?
>
> I've kept /run/booted-system, made some light cosmetic changes including
> in the GNU Changelog of the commit message (have a look in commit
> 856fa9a4e4), and pushed!
>
bug archived.
Request was from Debbugs Internal Request <help-debbugs@gnu.org>
to internal_control@debbugs.gnu.org.
(Mon, 14 Apr 2025 11:24:05 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the
GNU Public License version 2. The current version can be
obtained from https://bugs.debian.org/debbugs-source/.