guix/gnu/system
Ludovic Courtès 7f923c8efe
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
2026-01-21 22:56:38 +01:00
..
examples vm-image.tmpl: Remove current-guix url override. 2025-12-22 23:00:45 +01:00
images gnu: visionfive2: Update the module commentary. 2026-01-16 20:13:43 +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-21 22:56:38 +01:00
image.scm describe: Define and use ‘modules-from-current-profile’. 2026-01-21 22:56:38 +01:00
install.scm system: install: Remove current-guix url override. 2025-12-22 23:00:46 +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 locale: Upgrade ‘%default-locale-libcs’. 2025-07-18 20:17:51 +02:00
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 system: pam: Export pam records predicates. 2024-12-18 18:32:40 +01:00
privilege.scm privilege: Add file-like->setuid-program helper. 2024-09-08 02:00:00 +02:00
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