summaryrefslogtreecommitdiff
path: root/gnu/system.scm
Commit message (Expand)AuthorAgeFilesLines
...
* system: Fix typo in 'read-boot-parameters'.•••Fixes a regression introduced in commit 075681d3501082c6e22df8abf29dfe89d85effc1. * gnu/system.scm (read-boot-parameters): For 'root-device', use 'device-sexp->device', not 'device->sexp'. Ludovic Courtès2017-09-111-1/+1
* system: Serialize the UUID type in the "parameters" file.•••* gnu/system.scm (read-boot-parameters)[device->sexp]: New procedure. Use it for 'root-device' and 'store-device'. (device->sexp): Serialize the UUID type in addition to its bytevector. Ludovic Courtès2017-09-111-6/+12
* system: Introduce a disjoint UUID type.•••Conceptually a UUID is just a bytevector. However, there's software out there such as GRUB that relies on the string representation of different UUID types (e.g., the string representation of DCE UUIDs differs from that of ISO-9660 UUIDs, even if they are actually bytevectors of the same length). This new <uuid> record type allows us to preserve information about the type of UUID so we can eventually convert it to a string using the right representation. * gnu/system/uuid.scm (<uuid>): New record type. (bytevector->uuid): New procedure. (uuid): Return calls to 'make-uuid'. (uuid->string): Rewrite using 'match-lambda*' to accept a single 'uuid?' argument. * gnu/bootloader/grub.scm (grub-root-search): Check for 'uuid?' instead of 'bytevector?'. * gnu/system.scm (bootable-kernel-arguments): Check whether ROOT-DEVICE is 'uuid?'. (read-boot-parameters): Use 'bytevector->uuid' when the store device is a bytevector. (read-boot-parameters-file): Check for 'uuid?' instead of 'bytevector?'. (device->sexp): New procedure. (operating-system-boot-parameters-file): Use it for 'root-device' and 'store'. (operating-system-bootcfg): Remove conditional in definition of 'root-device'. * gnu/system/file-systems.scm (file-system->spec): Check for 'uuid?' on DEVICE and take its bytevector. * gnu/system/mapped-devices.scm (open-luks-device): Likewise. * gnu/system/vm.scm (iso9660-image): Call 'uuid-bytevector' for the #:volume-uuid argument. Ludovic Courtès2017-09-111-11/+27
* Merge branch 'master' into core-updatesMarius Bakke2017-08-011-15/+14
|\
| * bootloader: Use <menu-entry> for the bootloader side.•••* gnu/bootloader.scm (menu-entry-device-mount-point): New variable. Export it. (<menu-entry>: New field "device". * gnu/bootloader/grub.scm (grub-confgiuration-file): Handle <menu-entry> entries. * gnu/bootloader/extlinux.scm (extlinux-configuration-file): Handle <menu-entry> entries. * gnu/system.scm (menu->entry->boot-parameters): Delete variable. (boot-parameters->menu-entry): New variable. Export it. (operating-system-bootcfg): Make OLD-ENTRIES a list of <menu-entry>. * guix/script/system.scm (reinstall-bootloader): Fix bootcfg usage. (perform-action): Fix bootcfg usage. Danny Milosavljevic2017-07-281-15/+14
* | Merge branch 'master' into core-updatesLeo Famulari2017-07-231-0/+1
|\|
| * gnu: Add support for aarch64's compiled kernel.•••* gnu/packages/linux.scm (linux-libre)[arguments]: Add to the regex to find and install the aarch64-linux kernel. * gnu/system.scm (system-linux-image-file-name): Add entry for aarch64. Efraim Flashner2017-07-231-0/+1
* | Merge branch 'master' into core-updatesLeo Famulari2017-07-231-11/+14
|\|
| * system: Add 'newuidmap' and 'newgidmap' to %SETUID-PROGRAMS.•••* gnu/system.scm (%setuid-programs): Add 'newuidmap' and 'newgidmap'. 宋文武2017-07-181-0/+2
| * locale: Demonadify the locale creation API.•••* gnu/system/locale.scm (single-locale-directory): Use 'computed-file' instead of 'gexp->derivation'. (locale-directory): Adjust accordingly and do the same. * gnu/system.scm (operating-system-directory-base-entries): Adjust accordingly. Ludovic Courtès2017-07-171-11/+12
* | system: Avoid collision between GMP variants in the global profile.•••* gnu/system.scm (%base-packages): Move GUILE-2.2 out of the list passed to 'canonical-package'. Ludovic Courtès2017-06-301-1/+7
* | Merge branch 'master' into core-updatesLudovic Courtès2017-06-301-1/+1
|\|
| * system: Use "@" to refer to the 'shadow' package.•••Reported by Mark H Weaver at <https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00349.html>. * gnu/system.scm (%base-packages): Use '@' for shadow. This fixes an error on Guile 2.0 where 'shadow' alone resolves to the (gnu system shadow) module. Ludovic Courtès2017-06-301-1/+1
* | Merge branch 'master' into core-updatesLeo Famulari2017-06-291-0/+1
|\|
| * system: Add 'shadow' to %BASE-PACKAGES.•••Suggested by Göktuğ Kayaalp <self@gkayaalp.com>. * gnu/system.scm (%base-packages): Add SHADOW. Ludovic Courtès2017-06-291-0/+1
* | Merge branch 'master' into core-updates•••Conflicts: * gnu/packages/tls.scm (gnutls): Incorporated 3.5.13 graft (88e2511e217f2). Marius Bakke2017-06-111-8/+8
|\|
| * bootloader: Fix rebase error on f96752e commit.•••* gnu/system.scm (menu-entry->boot-parameters): Rename boot-name to bootloader-name. Mathieu Othacehe2017-06-101-1/+1
| * bootloader: Rename boot-name to bootloader-name.•••* gnu/system (<boot-parameters>)[boot-name]: Rename field to... [bootloader-name]: ... this. Adjust users. * gnu/scripts/system.scm: Adjust accordingly. Mathieu Othacehe2017-06-101-7/+7
* | Merge branch 'master' into core-updatesMarius Bakke2017-06-101-0/+14
|\|
| * bootloader: Use menu-entry to define custom bootloader entries.•••* gnu/bootloader.scm (<menu-entry>): New variable. Export associated getters, This record is extracted from grub module. * gnu/bootloader/extlinux.scm (extlinux-configuration-file): Use menu-entry->boot-parameters to convert menu-entry records to boot-parameters. * gnu/bootloader/grub.scm (<menu-entry>): Remove. (boot-parameters->menu-entry): Remove. (grub-configuration-file): Use boot-parameters to create configuration entries. * gnu/system.scm (menu-entry->boot-parameters): New exported procedure. Mathieu Othacehe2017-06-081-0/+14
* | gnu: Remove workaround for <https://bugs.gnu.org/26238>.•••* gnu/packages/base.scm (coreutils-8.27): Remove variable. * gnu/system.scm (%base-packages): Change back to COREUTILS. Marius Bakke2017-05-281-1/+1
|/
* system: Use Guile 2.2 rather than 2.0 in %BASE-PACKAGES.•••* gnu/system.scm (%base-packages): Change GUILE-2.0 to GUILE-2.2. Ludovic Courtès2017-05-191-1/+1
* bootloader: Add bootloader name to boot-parameters record.•••* gnu/system.scm (<boot-parameters>)[name]: New field. (boot-parameters-boot-name): Ditto. (operating-system-boot-parameters-file): Add new field. (operating-system-boot-parameters): Ditto. (read-boot-parameters): Ditto. Mathieu Othacehe2017-05-161-0/+12
* bootloader: Add extlinux support.•••* gnu/bootloader.scm: New file. * gnu/bootloader/extlinux.scm: New file. * gnu/bootloader/grub.scm: New file. * gnu/local.mk: Build new files. * gnu/system.scm: Adapt to new bootloader api. * gnu/scripts/system.scm: Adapt to new bootloader api. * gnu.scm: Remove (gnu system grub) and replace by (gnu bootloader) and (gnu bootloader grub) modules. * gnu/system/grub.scm: Moved content to gnu/bootloader/grub.scm. * gnu/system/vm: Replace (gnu system grub) module by (gnu bootloader). * gnu/tests.scm: Ditto. * gnu/tests/nfs.scm: Ditto. Mathieu Othacehe2017-05-161-7/+7
* system: Export 'read-boot-parameters'.•••This partially reverts commit 9530e73b496fefe65dcb936825b6beda79f7fdf2. * gnu/system.scm: Export 'read-boot-parameters' for backward compatibility. Alex Kost2017-05-131-0/+1
* system: Remove circular dependency between (gnu system) and (gnu system grub).•••Followup to 087efec496b91e3763be2e11e208d4a8f4ef3d43. * gnu/system.scm: (operating-system-bootcfg): Refer to (gnu system grub) by module-ref. Danny Milosavljevic2017-05-081-3/+5
* system: Remove circular dependency between (gnu system) and (gnu system grub).•••Followup to 8e815c5b6903a545c46b674c1cd1cc3180f835db. * gnu/system.scm: Remove (gnu system grub) import. (operating-system-bootcfg): Refer to (gnu system grub) within the procedure. Danny Milosavljevic2017-05-081-2/+1
* system: Define <boot-parameters> before first use.•••Fixes <http://bugs.gnu.org/26791>. Reported by Mark H Weaver <mhw@netris.org>. * gnu/system.scm (<boot-parameters>, read-boot-parameters) (read-boot-parameters-file): Move before first use of the 'boot-parameters' macro. Ludovic Courtès2017-05-071-95/+94
* system: Clarify that SYSTEM is either a derivation or #f.•••* gnu/system.scm (operating-system-boot-parameters): Clarify that SYSTEM is either a derivation or #f. Danny Milosavljevic2017-05-051-6/+7
* system: Use operating-system-boot-parameters directly.•••* gnu/system.scm (operating-system-bootcfg): Use operating-system-boot-parameters directly. Danny Milosavljevic2017-05-051-24/+4
* system: Introduce read-boot-parameters-file.•••* gnu/system.scm (read-boot-parameters): Remove export. (read-boot-parameters-file): New variable. Export it. * guix/scripts/system.scm (profile-boot-parameters): Use read-boot-parameters-file. (profile-grub-entries): Use read-boot-parameters-file. (reinstall-grub): Use read-boot-parameters-file. (display-system-generation): Use read-boot-parameters-file. Danny Milosavljevic2017-05-051-1/+21
* system: Introduce operating-system-kernel-arguments and use it.•••* gnu/system.scm (bootable-kernel-arguments): New variable. (operating-system-kernel-arguments): New variable. (operating-system-bootcfg): Use operating-system-kernel-arguments. (operating-system-boot-parameters): Use operating-system-kernel-arguments. Danny Milosavljevic2017-05-051-3/+22
* system: Factorize operating-system-boot-parameters-file.•••* gnu/system.scm (operating-system-boot-parameters): New variable. (operating-system-boot-parameters-file): Modify. Danny Milosavljevic2017-05-051-21/+43
* ui: Rename '_' to 'G_'.•••This avoids collisions with '_' when the latter is used as a 'match' pattern for instance. See <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00464.html>. * guix/ui.scm: Rename '_' to 'G_'. * po/guix/Makevars (XGETTEXT_OPTIONS): Adjust accordingly. * build-aux/compile-all.scm (warnings): Remove 'format'. * gnu/packages.scm, gnu/services.scm, gnu/services/shepherd.scm, gnu/system.scm, gnu/system/shadow.scm, guix/gnupg.scm, guix/http-client.scm, guix/import/cpan.scm, guix/import/elpa.scm, guix/import/pypi.scm, guix/nar.scm, guix/scripts.scm, guix/scripts/archive.scm, guix/scripts/authenticate.scm, guix/scripts/build.scm, guix/scripts/challenge.scm, guix/scripts/container.scm, guix/scripts/container/exec.scm, guix/scripts/copy.scm, guix/scripts/download.scm, guix/scripts/edit.scm, guix/scripts/environment.scm, guix/scripts/gc.scm, guix/scripts/graph.scm, guix/scripts/hash.scm, guix/scripts/import.scm, guix/scripts/import/cpan.scm, guix/scripts/import/cran.scm, guix/scripts/import/crate.scm, guix/scripts/import/elpa.scm, guix/scripts/import/gem.scm, guix/scripts/import/gnu.scm, guix/scripts/import/hackage.scm, guix/scripts/import/nix.scm, guix/scripts/import/pypi.scm, guix/scripts/import/stackage.scm, guix/scripts/lint.scm, guix/scripts/offload.scm, guix/scripts/pack.scm, guix/scripts/package.scm, guix/scripts/perform-download.scm, guix/scripts/publish.scm, guix/scripts/pull.scm, guix/scripts/refresh.scm, guix/scripts/size.scm, guix/scripts/substitute.scm, guix/scripts/system.scm, guix/ssh.scm, guix/upstream.scm: Use 'G_' instead of '_'. Most of this change was obtained by running: "sed -i -e's/(_ "/(G_ "/g' `find -name \*.scm`". Ludovic Courtès2017-05-031-4/+4
* system: Rename operating-system-parameters-file to operating-system-boot-para...•••* gnu/system.scm (operating-system-parameters-file): Rename to ... (operating-system-boot-parameters-file): ... this. (operating-system-directory-base-entries): Adapt call site. Danny Milosavljevic2017-04-221-2/+2
* system: Rename operating-system-kernel-arguments to operating-system-user-ker...•••* gnu/system.scm (operating-system-kernel-arguments): Rename to ... (operating-system-user-kernel-arguments): ... this. (<operating-system>): Adapt accordingly. (operating-system-bootcfg): Adapt accordingly. (operating-system-parameters-file): Adapt accordingly. * gnu/system/vm.scm (system-qemu-image/shared-store-script): Adapt accordingly. Danny Milosavljevic2017-04-221-4/+4
* gnu: Add workaround for `date` regression in coreutils@8.26.•••See <https://bugs.gnu.org/23035> and <https://bugs.gnu.org/26238>. * gnu/packages/base.scm (coreutils-8.27): New variable. * gnu/system.scm (%base-packages): Use that instead of COREUTILS. Marius Bakke2017-04-191-1/+1
* services: 'service-parameters' becomes 'service-value'.•••* gnu/services.scm (<service>)[parameters]: Rename to... [value]: ... this. Change calls to 'service-parameters' to 'service-value'. * gnu/system.scm, gnu/tests/base.scm, guix/scripts/system.scm, tests/services.scm: Likewise. * doc/guix.texi (Service Reference): Adjust accordingly. Ludovic Courtès2017-04-161-4/+4
* system: Make grub use <menu-entry> instead of <boot-parameters> again.•••* gnu/system/grub.scm: Remove boot-parameters->menu-entry. (grub-configuration): Don't use boot-parameters->menu-entry. * gnu/system.scm (operating-system-bootcfg): Use menu-entry. * guix/scripts/system.scm (reinstall-grub): Use profile-grub-entries. (perform-action): Use profile-grub-entries. Danny Milosavljevic2017-04-151-6/+5
* system: Pass boot-parameters to (gnu system grub).•••* gnu/system.scm (operating-system-bootcfg): Pass boot-parameters. * gnu/system/grub.scm (boot-parameters->menu-entry): New variable. (grub-configuration-file): Use boot-parameters->menu-entry. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Mathieu Othacehe2017-04-151-5/+6
* system: Rename (internal) grub-device to fs->boot-device.•••* gnu/system.scm (grub-device): Rename to... (fs->boot-device): ... this. (operating-system-grub.cfg): Adapt. (operating-system-parameters-file): Adapt. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Mathieu Othacehe2017-04-151-3/+3
* system: Rename operating-system-grub.cfg to operating-system-bootcfg.•••* gnu/system.scm (operating-system-grub.cfg): Rename to... (operating-system-bootcfg): ... this. * gnu/system/vm.scm (system-disk-image): Use operating-system-bootcfg. (system-qemu-image): Use operating-system-bootcfg. (system-qemu-image/shared-store): Use operating-system-bootcfg. * guix/scripts/system.scm (perform-action): Use operating-system-bootcfg. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Mathieu Othacehe2017-04-151-4/+5
* system: Rename kernel->grub-label to kernel->boot-label.•••* gnu/system.scm (kernel->grub-label): Rename to kernel->boot-label. (operating-system-grub.cfg): Adapt. (operating-system-parameters-file): Ditto. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Mathieu Othacehe2017-04-151-4/+4
* system: Avoid '_' as a pattern variable in 'match'.•••* gnu/system.scm (operating-system-root-file-system): Don't use '_' as a wildcard in 'match', to cope with literal semantics in 2.2. Ludovic Courtès2017-03-101-2/+2
* vm: Remove hard coded kernel file name.•••* gnu/system/vm.scm (system-qemu-image/shared-store-script, expression->derivation-in-linux-vm): Use operating-system-kernel-file and system-linux-image-file-name. * gnu/system.scm (system-linux-image-file-name): Add ARM. David Craven2017-02-281-3/+6
* system: Introduce 'file-systems' Shepherd service.•••* gnu/services/base.scm (file-system-shepherd-services): New procedure. (file-system-service-type): Use it as the SHEPHERD-ROOT-SERVICE-TYPE extension. (user-processes-service-type): Change to take a single 'grace-delay' parameter. (user-processes-service): Remove 'file-systems' parameter. Pass GRACE-DELAY as the only value for the service. * gnu/system.scm (essential-services): Adjust accordingly. Ludovic Courtès2017-01-311-3/+2
* gnu: system: Add openfwwf-firmware to %base-firmware.•••* gnu/system.scm (%base-firmware): Add openfwwf-firmware. * doc/guix.texi (Hardware Considerations): Mention b43-open support. (operating-system Reference)[firmware]: Likewise. Eric Bavier2016-11-221-1/+2
* system: Reintroduce 'GUIX_LOCPATH', for compatibility with glibc@2.23.•••* gnu/system.scm (operating-system-environment-variables): Re-add 'GUIX_LOCPATH'. This reverts part of 9f58fe3d1c32e3f0ced065e286532a10cad1b5e3. Ludovic Courtès2016-11-081-1/+9
* Merge branch 'master' into core-updatesMark H Weaver2016-11-071-6/+16
|\
| * system: Avoid using device paths in <menu-entry> device field.•••This fixes a regression introduced by 1ef8b72a7f87afe7cffe52393d99e1b14e4770e1, in which we would incorrectly use a device path in a label-based grub root search command, e.g. 'search --label --set /dev/sda4'. * gnu/system.scm (grub-device): New procedure. (operating-system-grub.cfg, operating-system-parameters-file): Use it. (read-boot-parameters): Handle device paths correctly. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Chris Marusich2016-11-061-6/+16