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
images gnu: visionfive2: Update the module commentary. 2026-01-16 20:13:43 +01:00
accounts.scm
file-systems.scm
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
keyboard.scm
linux-container.scm
linux-initrd.scm
locale.scm
mapped-devices.scm
nss.scm
pam.scm
privilege.scm
setuid.scm
shadow.scm
uuid.scm
vm.scm