guix/gnu/system
Ludovic Courtès 15f87a0f03
describe: Define and use ‘modules-from-current-profile’.
Fixes <https://issues.guix.gnu.org/75458>.

Fixes a bug whereby bootloader, image, platform, etc. modules would be
searched for in locations other than the current profile, possibly leading to
incompatible files being loaded.  More generally, this bug would break
statelessness: depending on what happens to be available in $GUILE_LOAD_PATH,
some modules would or would not be loaded.

* guix/describe.scm (modules-from-current-profile): New procedure.
* gnu/bootloader.scm (bootloader-modules): Use it instead of ‘all-modules’.
* gnu/system/image.scm (image-modules): Likewise.
(not-config?): Rename to…
(neither-config-nor-git?): … this, and add (guix git).  Adjust users.
* guix/import/utils.scm (build-system-modules): Likewise.
* guix/platform.scm (platform-modules): Likewise.
* guix/upstream.scm (importer-modules): Likewise.

Change-Id: I8ac55a5bcdf54990665c70d0aa558b9b2c2548d4
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #4859
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
2026-01-25 21:17:44 +01:00
..
examples gnu: %desktop-services: Switch to GDM on 64-bit systems. 2026-01-19 18:51:12 +01:00
images gnu: visionfive2: Update the module commentary. 2026-01-16 20:23:49 +01:00
accounts.scm Update Giacomo's email address. 2025-12-03 14:38:09 +09:00
file-systems.scm file-systems: Support the 'remount' mount flag. 2025-11-06 23:29:46 +01:00
hurd.scm system: hurd: Switch to the Shepherd’s system log. 2026-01-25 21:17:39 +01:00
image.scm describe: Define and use ‘modules-from-current-profile’. 2026-01-25 21:17:44 +01:00
install.scm system: install: Add support for more boot devices on AArch64. 2026-01-16 20:28:28 +01:00
keyboard.scm
linux-container.scm system: Reinstate lock-mounts work around for system containers. 2025-12-16 09:32:07 +01:00
linux-initrd.scm linux-initrd: Support more virtio modules in initrd. 2025-12-22 23:00:42 +01:00
locale.scm
mapped-devices.scm mapped-devices/luks: Support extra options. 2025-10-06 10:21:16 +02:00
nss.scm nss: Allow selecting IP protocol for mDNS lookups. 2025-10-13 14:48:27 +02:00
pam.scm
privilege.scm
setuid.scm privilege: Add file-like->setuid-program helper. 2024-09-08 02:00:00 +02:00
shadow.scm Update Giacomo's email address. 2025-12-03 14:38:09 +09:00
uuid.scm
vm.scm vm: Let ‘%immutable-store’ through. 2025-10-01 10:45:09 +02:00