Commit graph

144549 commits

Author SHA1 Message Date
Nicolas Graves
44b06b030d
gnu: Remove allegro-5.0. [security fixes]
This package has no dependencies in Guix, is unsupported (see
https://liballeg.org/old.html) and is vulnerable to CVE-2021-36489.

* gnu/packages/game-development.scm (allegro-5.0): Delete variable.
* gnu/local.mk: Deregister patch.
* gnu/packages/patches/allegro-mesa-18.2.5-and-later.patch: Delete file.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:38 +09:00
Nicolas Graves
09bbdc3ead
gnu: postgresql-15: Update to 16.4. [security fixes]
This fixes CVE-2024-7348.

* /gnu/packages/databases.scm
(postgresql-15): Move from here...
(postgresql-16): ... to here.
[version]: Update to 16.4.
[source]: Adapt source and add patch.
[native-inputs]: Add pkg-config.
[inputs]: Add icu4c.
* gnu/packages/patches/postgresql-disable-normalize_exec_path.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I57771ebcf462bdeca73eda157274db089816fd12
2024-11-12 17:41:38 +09:00
Nicolas Graves
168001df96
gnu: postgresql-14: Update to 14.13.
* gnu/packages/databases.scm (postgresql-14): Update to 14.13.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:38 +09:00
Nicolas Graves
1b0b16c0d3
gnu: postgresql-13: Update to 13.16. [security fixes]
This fixes CVE-2024-7348.

* gnu/packages/databases.scm (postgresql-13): Update to 13.16.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:38 +09:00
Maxim Cournoyer
847a7284a8
gnu: sendmail: Remove trailing #t from phases.
* gnu/packages/mail.scm (sendmail) [arguments] <#:phases>: Remove trailing #t
and re-indent some expressions.

Change-Id: I1557b07f53f4f7f4aad6850d98973570d1d2a8cc
2024-11-12 17:41:38 +09:00
Maxim Cournoyer
0a9040a51b
gnu: curl: Update home page.
* gnu/packages/curl.scm (curl) [home-page]: Update URL.

Change-Id: I0fbcdceddd8c7b40edb430e9a5ebc160f47efb29
2024-11-12 17:41:38 +09:00
Nicolas Graves
7b8c099f3e
gnu: rnp: Update to 0.17.1. [security fixes]
This fixes CVE-2023-29479 and CVE-2023-29480.

* gnu/packages/openpgp.scm (rnp): Update to 0.17.1.
[arguments]: Improve style using gexps.
<#:phases>: Add phase 'inject-sexpp-source.
[inputs]: Add sexpp.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: Ic1d4740da168cd9fde8b642f279c2c77a1c3806f
2024-11-12 17:41:38 +09:00
Nicolas Graves
603407fa0a
gnu: Add sexpp.
* gnu/packages/openpgp.scm (sexpp): New variable.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:38 +09:00
Nicolas Graves
0bca6c0309
gnu: unicorn: Update to 2.1.1. [security fixes]
Thix fixes CVE-2021-4296.

* gnu/packages/emulators.scm (unicorn): Update to 2.1.1.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:38 +09:00
Nicolas Graves
ef7b74f835
gnu: openvpn: Update to 2.6.12. [security fixes]
Thix fixes CVE-2024-24974, CVE-2024-27459 and CVE-2024-27903.

* gnu/packages/vpn.scm (openvpn): Update to 2.6.12.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:38 +09:00
Nicolas Graves
6c6d9ea4a6
gnu: sendmail: Update to 8.18.1. [security fixes]
This fixes CVE-2023-51765 and CVE-2021-3618.

* gnu/packages/mail.scm (sendmail): Update to 8.18.1.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:38 +09:00
Nicolas Graves
2d459bb830
gnu: pam-u2f: Update to 1.3.0. [security fixes]
This fixes CVE-2021-31924.

* gnu/packages/security-token.scm (pam-u2f): Update to 1.3.0.
[inputs]: Add libfido2, openssl. Remove libu2f-host, libu2f-server.
[native-inputs]: Sort packages.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:38 +09:00
Nicolas Graves
b7af6dd6f5
gnu: bart: Update to 0.9.00.
This fixes bart reproducibility.

* gnu/packages/image-processing.scm (bart): Update to 0.9.00.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I2c40957a8e55fec945ec03e097cf3a3c71da85ee
2024-11-12 17:41:38 +09:00
Nicolas Graves
700126f654
gnu: nzbget: Ignore failing tests.
* gnu/packages/networking.scm (nzbget)[arguments]<#:phases>:
Ignore a misconfigured test on aarch64.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:14 +09:00
Nicolas Graves
4cb016fa0c
gnu: nzbget: Update to 24.3. [security fixes]
This fixes CVE-2023-49102.

* gnu/packages/networking.scm (nzbget): Update to 24.3.
[source]: Switch to git-fetch.
[build-system]: Switch to cmake-build-system.
[arguments]<configure-flags>: Update field.
[inputs]: Add boost, openssl.
[native-inputs]: Remove pkg-config, add which.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:14 +09:00
Ashish SHUKLA
7fdda1c4bb
gnu: curl: Fix CVE-2024-8096.
* gnu/packages/curl.scm (curl) [replacement]: New field.
(curl/fixed): New variable.
* gnu/packages/patches/curl-CVE-2024-8096.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.

Change-Id: I42facad095d97dc94302e9db60626b9fa00f3738
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:14 +09:00
Ashish SHUKLA
6b8af015b2
gnu: ffmpeg-4: Update to 4.4.5 [fixes CVE-2024-7055].
* gnu/packages/video.scm (ffmpeg-4): Update to 4.4.5.
* gnu/packages/patches/ffmpeg-remove-compressed_ten_bit_format.patch: Delete
file.
* gnu/local.mk (dist_patch_DATA): De-register it.

Change-Id: Ie35066988c26af338120b2ce002c767ff4c7aaec
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:14 +09:00
Ashish SHUKLA
ea4adb48cb
gnu: ffmpeg-5: Update to 5.1.6 [fixes CVE-2024-7055, CVE-2024-7272].
* gnu/packages/video.scm (ffmpeg-5): Update to 5.1.6.

Change-Id: If86cbff17d63528b42a9c5ce2c062014251b8fcb
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:14 +09:00
Ashish SHUKLA
0b60708ee0
build: chicken-build-system: Update for 5.4.0.
* guix/build/chicken-build-system (build): chdir to the directory containing
sources, and let chicken-install process the current directory.
(install): Switch to define as we do not need any keys.
(check): Remove unused egg-name from the arguments.

Change-Id: I4adf5e2378deab6e3f3b3c128c3cc75ce43f0e8a
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:14 +09:00
Ashish SHUKLA
57e6a56281
gnu: chicken: Update to 5.4.0.
* gnu/packages/chicken.scm (chicken): Update to 5.4.0.

Change-Id: I448bdc25a5cb11e55c7ebb9d9e0cf1876ca958d8
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:14 +09:00
Liliana Marie Prikler
a6dab6e915
gnu: libarchive: Graft to 3.7.7. [security fixes]
* gnu/packages/backup.scm (libarchive): Add replacement with libarchive/fixed.
(libarchive/fixed): New variable.

Fixes: Out of bounds access in ZIP files [CVE-2024-37407].
Fixes: Out of bounds access in RAR files [CVE-2024-48957, CVE-2024-48958].
Fixes: Race condition in multi-threaded systems [CVE-2023-30571].
Fixes: NULL pointer dereference [CVE-2022-36227].
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2024-11-12 17:41:14 +09:00
Sergey Trofimov
0cbd830ebb
gnu: emacs-telega: Update to 0.8.391.
* gnu/packages/emacs-xyz.scm (emacs-telega): Update to 0.8.391.
2024-11-12 12:20:38 +08:00
Sergey Trofimov
8f71526958
gnu: tdlib: Update to 1.8.39.
* gnu/packages/messaging.scm (tdlib): Update to 1.8.39.
2024-11-12 12:20:38 +08:00
Zheng Junjie
cea2e7633d
gnu: liblouisutdml: Update to 2.12.0-0.00ca783.
* gnu/packages/language.scm (liblouisutdml): Update to 2.12.0-0.00ca783.
[arguments]: Use G-expressions.
[native-inputs]: Remove labels.
[propagated-inputs]: Remove labels.

Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail>
Change-Id: Iedbcb5b3073f26a42805ae02550a28f6f1abee86
2024-11-12 12:20:38 +08:00
Danny Milosavljevic
ef84004825
gnu: emacs-org-node: Update to 1.7.4.
* gnu/packages/emacs-xyz.scm (emacs-org-node): Update to 1.7.4.

Change-Id: Ie1da1b7626f9deb9abc64abdb5df544f68e34c4e
2024-11-12 03:55:40 +01:00
Danny Milosavljevic
0cc5b58967
gnu: emacs-org-node: Update to 1.6.1.
* gnu/packages/emacs-xyz.scm (emacs-org-node): Update to 1.6.1.

Change-Id: I4c0f11db95620d15b7104ae288ce7c68c3fdc46f
2024-11-12 03:46:31 +01:00
Ricardo Wurmus
b790db7589
gnu: r-hdwgcna: Use R build system phases.
* gnu/packages/bioinformatics.scm (r-hdwgcna)[arguments]: Explicitly select
%STANDARD-PHASES from r-build-system module.

Change-Id: I8f6593ab1243884827698cf84d34d9f7aef5c28c
2024-11-11 20:45:16 +01:00
Ricardo Wurmus
c0260cafe5
gnu: Add r-hdwgcna.
* gnu/packages/bioinformatics.scm (r-hdwgcna): New variable.

Change-Id: I1e3c7663a777ee543c53ccee90b6e71f544d89aa
2024-11-11 18:47:58 +01:00
Ricardo Wurmus
ea7510a32f
gnu: Add r-tester.
* gnu/packages/cran.scm (r-tester): New variable.

Change-Id: Id7835b32794b8c34ff7f540f8c7a4cfc1d616ba0
2024-11-11 18:47:49 +01:00
Navid Afkhami
2b781003a4
gnu: Add python-rangehttpserver.
* gnu/packages/python-web.scm (python-rangehttpserver): New variable.

Change-Id: Ib37b29bedb468faf4da5ab5080106c54e50f52c7
Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
2024-11-11 12:58:00 +01:00
Navid Afkhami
6e19a94d5a
gnu: Add python-harmonypy.
* gnu/packages/bioinformatics.scm (python-harmonypy): New variable.

Change-Id: Iad8be627099858776163fccfeb27c08129e6fb75
Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
2024-11-11 10:43:58 +01:00
Attila Lendvai
9821e967b0
gnu: dropbear: Update to 2024.86.
* gnu/packages/ssh.scm (dropbear): Update to 2024.86.

Change-Id: I1fe9bf0fcaaed3e55ed9a56697d51c5451f3a726
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-11-11 11:19:40 +02:00
Janneke Nieuwenhuizen
035e5f0c74
installer: Support dry-run from Guile via store.
This supports running the installer quasi-directly from Guile by only building
a Guile installer-script in the store.  Do something like:

    ./pre-inst-env guile -c '((@ (gnu installer) run-installer) #:dry-run? #t)'

or and BE VERY CAREFUL WHEN NOT USING #:DRY-RUN #T!

    sudo -E ./pre-inst-env guile -c '((@ (gnu installer) run-installer))'

for this to work, you also need connman.

* gnu/installer.scm (installer-script, run-installer): New procedures.

Change-Id: I8cc1746845ec99f738e35fa91bb2342a674cfa88
2024-11-11 07:28:35 +01:00
Janneke Nieuwenhuizen
711855cb00
installer: Add static-networking template.
* gnu/installer/services.scm (%system-services): Add
static-networking-service-type.

Change-Id: Iec6336f8d1f49e8b801e978d5c9eeb4f83a6e748
2024-11-11 07:28:35 +01:00
Janneke Nieuwenhuizen
687a2ccabc
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).

* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure.  When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment.  Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise.  No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.

Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-11-11 07:28:35 +01:00
Janneke Nieuwenhuizen
9aeb8e3dee
installer: Add dry-run?
This allows running the installer without root privileges.  Do something like

    ./pre-inst-env guix repl
    ,use (guix)
    ,use (gnu installer)
    (installer-program #:dry-run? #t)
    ,build $1
    =>
    "/gnu/store/...-installer-program"

and run

    /gnu/store/...-installer-program

* gnu/installer/newt.scm (locale-page): Add #:dry-run? parameter.
(keymap-page): Likewise.
* gnu/installer/newt/keymap.scm (run-keymap-page): Likewise.
* gnu/installer/steps.scm (run-installer-steps): Likewise.  Use it to skip
writing to socket.
* gnu/installer/newt/final.scm (run-final-page): Rename to...
(run-final-page-install): ...this.
(dry-run-final-page, run-final-page): New procedures.
* gnu/installer/parted.scm (bootloader-configuration): Cater for empty user
partitions.
* gnu/installer/utils.scm (dry-run-command): New procedure.
* gnu/installer.scm (compute-locale-step): Add #:dry-run? parameter.  Use it
to avoid actually applying locale.
(compute-keymap-step): Add dry-run? parameter.  Pass it to
keymap-page.
(installer-program): Add #:dry-run? parameter.  If #:true
avoid writing to /proc, use dry-run-command, skip sync and reboot, and pass
dry-run? to...
(installer-steps): ...here.  Add #:dry-run? parameter.  Use it to disable
skip network, substitutes, partitioning pages, and pass it to...
compute-locale-step, compute-keymap-step, and final-page.

Change-Id: I0ff4c3b0a0c69539af617c27ba37654beed44619
2024-11-11 07:28:35 +01:00
Janneke Nieuwenhuizen
cca544513b
installer: Use `%' for parameter %run-command-in-installer.
* gnu/installer/utils.scm (run-command-in-installer): Rename to...
(%run-command-in-installer): ...this.
* gnu/installer.scm (installer-program): Update accordingly.
* gnu/installer/parted.scm (remove-logical-devices, create-btrfs-file-system,
create-ext4-file-system, create-fat16-file-system, create-fat32-file-system,
create-jfs-file-system, create-ntfs-file-system, create-xfs-file-system,
create-swap-partition, luks-format-and-open, luks-ensure-open, luks-close):
Update accordingly.

Change-Id: I96ebc59ebc85fd8ebccb0cc57130b4e7532d287f
2024-11-11 07:28:34 +01:00
Janneke Nieuwenhuizen
e57bc3bcde
installer: Fix file-name typos.
* gnu/installer/newt/page.scm (run-dump-page): Typo file-name.
* gnu/installer/utils.scm (open-new-log-port): Likewise.

Change-Id: I837991a0ee5054b3afa8328205e23ac6f9fbae8d
2024-11-11 07:28:34 +01:00
Janneke Nieuwenhuizen
31f687f258
installer: Use "partitioning-page" consistently.
Having `partition-page' function call `RUN-partititionING-page' where all
other proxy functions call `RUN-<name>' hurts my brain while refactoring.

* gnu/installer/record.scm (<installer>)[partition-page]: Rename to...
[partitioning-page]: ...this.
* gnu/installer/newt.scm (partitioning-page, newt-installer): Update
accordingly.
* gnu/installer.scm (installer-steps): Update accordingly.

Change-Id: I6b2f3459a3d0a7a89260224b7d8438676e3411ba
2024-11-11 07:28:34 +01:00
Janneke Nieuwenhuizen
a08bb21376
installer: Align comments.
* gnu/installer.scm (installer-program): Align comments.

Change-Id: I50c173c46ea9bfdb3da0562146bc969d46f0edd9
2024-11-11 07:28:34 +01:00
Janneke Nieuwenhuizen
f7aa7acc22
installer: Remove unused (newt) imports.
* gnu/installer/newt/ethernet.scm,
gnu/installer/newt/keymap.scm,
gnu/installer/newt/locale.scm,
gnu/installer/newt/parameters.scm,
gnu/installer/newt/services.scm: Remove (newt).

Change-Id: Ia6624aaf73491024da54b8ffee7358941b187fdf
2024-11-11 07:28:34 +01:00
Janneke Nieuwenhuizen
a84586dad6
maint: Add installer dependencies to the manifest.
* manifest.scm: Add guile-newt, guile-parted, guile-webutils.

Change-Id: Idcf46320d29c15f36da05f66e81b7779e37c1bf6
2024-11-11 07:28:34 +01:00
Janneke Nieuwenhuizen
2390db7f46
system: examples: Add devel-hurd.tmpl.
This operating system specification for the Hurd creates a system that
supports building the guix package from git natively.

Do something like

    ./pre-inst-env guix system build --target=i586-pc-gnu \
       gnu/system/examples/devel-hurd.tmpl

    ./pre-inst-env guix system image --image-type=hurd-qcow2 --image-size=15G \
       --no-offload gnu/system/examples/devel-hurd.tmpl

    cp /gnu/store/...disk-image devel.img

    guix shell qemu -- qemu-system-i386 -enable-kvm -m 4096 \
     -device rtl8139,netdev=net0                            \
     -netdev user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222 \
     -hda devel-hurd.img

    ssh -p 10022 root@localhost
    GUIX_PROFILE=/run/current-system/bootstrap-profile
    source $GUIX_PROFILE/etc/profile
    mkdir -p ~/src/guix
    cd src/guix
    git clone git://git.savannah.gnu.org/guix
    cd guix
    ./bootstrap
    ./configure --with-courage
    make

* gnu/system/examples/devel-hurd.tmpl: New file.

Change-Id: I097c7c00a9ab9602db7f8f3305827c815f308d1e
2024-11-11 07:28:33 +01:00
Janneke Nieuwenhuizen
f2cefd700d
hurd-boot: Support second boot.
* gnu/build/hurd-boot.scm (boot-hurd-system): Check for stale shepherd socket
and remove it.  Be chattier about /hurd symlink replacement.

Change-Id: I5e528c131ebeadb7ebc9727336a0f9301af3e68e
2024-11-11 07:28:33 +01:00
Janneke Nieuwenhuizen
b25d2ad5c7
gnu: hurd: Support second boot.
This avoids hanging upon second boot and ensures a declarative /hurd and /dev.

* gnu/packages/patches/hurd-startup.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/hurd.scm (hurd): Use it.
[arguments]: In stage create-runsystem remove /dev/urandom.

Change-Id: Ifcca5562c297204735c35132820a32ca0f273677
2024-11-11 07:28:33 +01:00
Janneke Nieuwenhuizen
a16c94446e
system: hurd: Add swap-services to hurd-default-essential-services.
* gnu/services/base.scm (swap-service-type): Do not include 'udev' requirement
for the Hurd.  Use system* with "swapon", "swapoff" for the Hurd.
* gnu/system.scm (hurd-default-essential-services): Add swap-services.
* gnu/services/base.scm (swap-service-type):

Change-Id: I1d4d445c614921752dc84aa0dd6ff42cdbf62aa8
2024-11-11 07:28:33 +01:00
Janneke Nieuwenhuizen
6dbfe1a118
system: hurd: Remove qemu networking from %base-services/hurd.
This allows us to use %base-services/hurd for services in a Hurd config for a
real machine without removing static-networking.

* gnu/system/hurd.scm (%base-services/hurd): Factor networking out to...
(%base-services+qemu-networking/hurd): ..this new variable.
* gnu/system/examples/bare-hurd.tmpl (%hurd-os): Use it.
* gnu/services/virtualization.scm (%hurd-vm-operating-system): Use it.
* gnu/system/images/hurd.scm (hurd-barebones-os): Use it.  Add comment about
QEMU and networking for a real machine.

Change-Id: I777a63410383b9bf8b5740e4513dbc1e9fb0fd41
2024-11-11 07:28:33 +01:00
Janneke Nieuwenhuizen
fdb23d9db8
bootloader: grub: Remove hardcoded partition number for the Hurd.
This supports using another than the default DISK0 PART1 and using LABEL or
UUID as root file-system specifier.  It still defaults to DISK0 PART1 if
the file-system cannot be found, i.e., lives only at the build side: A
virtual machine/childhurd build.

* gnu/build/file-systems.scm (%hurd-device-spec-regexp, %device-spec-regexp):
New variables.
(device-name->hurd-device-name, hurd-device-name->device-name,
device-spec->device, device-spec->device-name): Use them in new procedures.
* gnu/bootloader/grub.scm (make-grub-configuration): Use them to remove
hardcoded partition number (root-index 1).

Change-Id: I49fa93dacc09883dfb4d695402c5eac2e0e17286
2024-11-11 07:28:33 +01:00
Janneke Nieuwenhuizen
046d6d9f8e
guix system: When installing the Hurd, create essential devices.
* guix/scripts/system.scm (install): When installing the Hurd, invoke
`make-hurd-device-nodes'.

Change-Id: If84d5fe0b5bf4a93452f0b5241650f325d583543
2024-11-11 07:28:32 +01:00
Janneke Nieuwenhuizen
4f94f07b1f
reconfigure: Use native bootloader package for running the installer.
This fixes running grub-install when using guix system init --target.

* guix/scripts/system/reconfigure.scm (install-bootloader): Use native package
when invoking install-bootloader-program.

Change-Id: I48d80a8dff866ada3625d827dd3036fb966eee9a
2024-11-11 07:28:29 +01:00