summaryrefslogtreecommitdiff
path: root/gnu/system
Commit message (Collapse)AuthorAgeFilesLines
* system: Add btrfs file system support.David Craven2017-01-101-0/+6
| | | | | | | | | | | | | | | | * gnu/build/file-systems.scm (%btrfs-endianness, btrfs-superblock?, read-btrfs-superblock, btrfs-superblock-uuid, btrfs-superblock-volume-name, check-btrfs-file-system): New variables. (%paritition-label-readers, %partition-uuid-readers): Add btrfs readers. * gnu/system/linux-initrd.scm (linux-modules): Add btrfs modules when a btrfs file-system is used. * gnu/tests/install.scm (%btrfs-root-os %btrfs-root-os-source, %btrfs-root-installation-script, %test-btrfs-root-os): New system test. * doc/guix.texi: Adjust accordingly. Fixes <http://bugs.gnu.org/19280>.
* system: grub: Load relevant EFI modules on EFI systems.Ludovic Courtès2017-01-031-4/+13
| | | | | * gnu/system/grub.scm (eye-candy)[setup-gfxterm-body]: Add 'insmod' invocations when ${grub_platform} is "efi".
* install: The list of services is now a plain list.Ludovic Courtès2016-12-191-4/+3
| | | | | * gnu/system/install.scm (installation-services): Rename to... (%installation-services): ... this. Turn into a list instead of a thunk.
* linux-initrd: Support FAT filesystems.Marius Bakke2016-12-181-0/+9
| | | | | | * gnu/system/linux-initrd.scm (base-initrd): When a FAT filesystem is present: Add fatfsck/static in 'helper-packages'; and add nls_iso8859-1 in 'linux-modules'.
* install: Add dosfstools.Ludovic Courtès2016-12-161-0/+1
| | | | * gnu/system/install.scm (installation-os)[packages]: Add DOSFSTOOLS.
* doc: Suggest installing gvfs.Ricardo Wurmus2016-11-281-1/+2
| | | | | * gnu/system/examples/desktop.tmpl: Add gvfs to the system-wide list of packages.
* doc: Document encrypted root partitions.Ludovic Courtès2016-11-241-2/+13
| | | | | | | | | | | | This is a followup to f7f292d359e0eb77617f4ecf6b3164f868ec1784. * doc/guix.texi (Preparing for Installation): Give commands for encrypted root installation. (Proceeding with the Installation): Add item about mapped devices. (File Systems): Mention that 'dependencies' can list <mapped-device> objects. * gnu/system/examples/desktop.tmpl (mapped-devices): New field. (file-systems): Add 'dependencies' field.
* mapped-devices: Use 'cryptsetup-static' in 'luks-device-mapping'.Ludovic Courtès2016-11-231-3/+5
| | | | | | * gnu/system/mapped-devices.scm (open-luks-device): Use CRYPTSETUP-STATIC instead of CRYPTSETUP. Use 'file-append'. (close-luks-device): Likewise.
* vm: Disable initrd-time QEMU networking for VM images.Ludovic Courtès2016-11-191-2/+0
| | | | | | | | | Fixes <http://bugs.gnu.org/24943>. Reported by dian_cecht@zoho.com. * gnu/system/vm.scm (system-qemu-image)[initrd]: Remove #:qemu-networking? #t. (virtualized-operating-system): Likewise
* container: Pass a list of <file-system> objects as things to mount.Ludovic Courtès2016-11-102-1/+13
| | | | | | | | | | | | | | | * gnu/build/linux-container.scm (mount-file-systems): 'mounts' is now a list of <file-system> objects instead of a list of lists ("specs"). Add call to 'file-system->spec' as the argument to 'mount-file-system'. (run-container, call-with-container): Adjust docstring accordingly. * gnu/system/file-systems.scm (spec->file-system): New procedure. * gnu/system/linux-container.scm (container-script)[script]: Call 'spec->file-system' inside gexp. * guix/scripts/environment.scm (launch-environment/container): Remove call to 'file-system->spec'. * tests/containers.scm ("call-with-container, mnt namespace") ("call-with-container, mnt namespace, wrong bind mount"): Pass a list of <file-system> objects.
* linux-container: Use 'source-module-closure' when generating the script.Ludovic Courtès2016-11-101-8/+5
| | | | | * gnu/system/linux-container.scm (container-script)[script]: Use 'source-module-closure' in 'with-imported-modules' form.
* system: Use grub from bootloader configuration.Marius Bakke2016-11-081-0/+1
| | | | | | | | * gnu/system/grub.scm (gnu): Export grub-configuration-grub. * guix/scripts/system.scm (perform-action): Use it. (define-module): Don't import (gnu packages grub). Co-authored-by: Danny Milosavljevic <dannym@scratchpost.org>
* gnu: Remove comment which is factually incorrect.John Darrington2016-11-061-1/+1
| | | | * gnu/system/pam.scm: Remove incorrect comment.
* system: Record store file system info in each generation.Chris Marusich2016-10-301-36/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/system.scm (<boot-parameters>)[store-device, store-mount-point]: New fields. (read-boot-parameters): Initialize them. (operating-system-grub.cfg): Likewise. Remove STORE-FS argument from call to 'grub-configuration-file'. (operating-system-parameters-file): Add 'store' element in 'boot-parameters'. * gnu/system/grub.scm (strip-mount-point): Replace 'store-fs' parameter by 'mount-point'; adjust accordingly. Adjust callers. (<menu-entry>)[device, device-mount-point]: New fields. (eye-candy): Replace 'root-fs' parameter by 'store-device'; add 'store-mount-point'. Use keyword arguments for 'system' and 'port'. (grub-root-search): Remove 'root-fs' by 'device' and adjust accordingly. (grub-configuration-file): Remove 'store-fs' parameter. Adjust accordingly. * guix/scripts/system.scm (previous-grub-entries): Initialize 'device' and 'device-mount-point' fields from PARAMS. * doc/guix.texi (GRUB Configuration): Document 'device' and 'device-mount-point'. Explain that 'linux' can be prefixed by a GRUB device name. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
* mapped-devices: Use 'mdadm-static' in 'raid-device-mapping'.Ludovic Courtès2016-10-271-3/+5
| | | | | * gnu/system/mapped-devices.scm (open-raid-device, close-raid-device): Use MDADM-STATIC instead of MDADM. Use 'file-append'.
* system: grub: Use Guile-{RSVG,Cairo} instead of Inkscape + ImageMagick.Ludovic Courtès2016-10-251-22/+19
| | | | | | | | | | | | Based on a suggestion by Andy Wingo at <https://lists.gnu.org/archive/html/guix-devel/2015-08/msg00753.html>. * gnu/build/svg.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/system/grub.scm (svg->png): Add #:width and #:height. Rewrite to use (gnu build svg). (resize-image): Remove. (grub-background-image): Adjust accordingly.
* mapped-devices: Properly open RAID devices.Ludovic Courtès2016-10-041-2/+2
| | | | | | | | This fixes a type error introduced in 7f8ad82bf23b032ad6bd85bb1daa87cc83de509c, given that SOURCES is a list. * gnu/system/mapped-devices.scm (open-raid-device): Add 'apply' invocation.
* Add missing exports.Ludovic Courtès2016-09-271-0/+1
| | | | | | | | | Reported by Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> at <https://lists.gnu.org/archive/html/guix-devel/2016-09/msg01686.html>. * gnu/system/file-systems.scm (%tty-gid): Export. * guix/build-system/python.scm (default-python, default-python2): Export.
* system: Don't emit a GRUB 'search' command when passed a GRUB file name.Ludovic Courtès2016-09-261-12/+17
| | | | | | | | Reported by Tomáš Čech <tcech@suse.com> at <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20067#26>. * gnu/system/grub.scm (grub-root-search): Don't emit anything when FILE is a string that does not denote an absolute file name.
* system: grub.cfg uses correct file names when store is not in root partition.Carlos Sánchez de La Lama2016-09-241-7/+23
| | | | | | | | | | | | | | | Fixes <http://bugs.gnu.org/24346>. Reported by csanchezdll@gmail.com (Carlos Sánchez de La Lama). * guix/scripts/system.scm (previous-grub-entries): Get the initrd file name from PARAMS. * gnu/system.scm (operating-system-grub.cfg): Use 'operating-system-initrd-file' to retrieve the initrd file name. * gnu/system/grub.scm (strip-mount-point): New procedure. (grub-configuration-file)[entry->gexp]: Call 'strip-mount-point' for LINUX and INITRD. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
* services: console-font: A single service handles all the VTs.Ludovic Courtès2016-09-191-6/+4
| | | | | | | | | * gnu/services/base.scm (%default-console-font): New variable. (console-font-shepherd-services): New procedure. (console-font-service-type): Change to use 'service-type'. (console-font-service): Rewrite using 'simple-service'. (%base-services): Use a single CONSOLE-FONT-SERVICE-TYPE instance. * gnu/system/install.scm (installation-services): Likewise.
* install: Use login-service.David Craven2016-09-111-3/+3
| | | | * gnu/system/install.scm (installation-services): Use login-service.
* system: grub: Allow arbitrary kernel file names in 'menu-entry'.Ludovic Courtès2016-09-091-10/+3
| | | | | | | | | | | | | | | | | | | Fixes <http://bugs.gnu.org/20067>. Reported by Tomáš Čech <sleep_walker@suse.cz>. * gnu/system.scm (system-linux-image-file-name) (operating-system-kernel-file): New procedures. (operating-system-grub.cfg): Use 'operating-system-kernel-file' for the 'kernel' field of 'menu-entry'. (operating-system-parameters-file): Likewise for the 'kernel' entry. (read-boot-parameters): Adjust 'kernel' field so that it contains the absolute file name of the image. * gnu/system/grub.scm (grub-configuration-file)[linux-image-name]: Remove. [entry->gexp]: Assume LINUX is the absolute file name of the kernel image. * doc/guix.texi (GRUB Configuration): Add an example, and adjust 'kernel' field documentation accordingly.
* gnu: Add edit warning to generated grub.cfg filesJohn Darrington2016-09-081-0/+4
| | | | * gnu/services/grub.scm (grub-configuration-file): Add code to emit warning.
* gnu: lightweight-desktop.tmpl: Fix typo.Efraim Flashner2016-09-081-1/+1
| | | | | | * gnu/system/examples/lightweight-desktop.tmpl: While it is currently unknown if Bob has a brother, it is sufficiently documented that Alice is, in fact, Bob's sister.
* system: vm: Remove -net user flag.David Craven2016-09-061-1/+0
| | | | * gnu/system/vm.scm (common-qemu-options): Remove -net user flag.
* system: Use 'source-module-closure' where needed.Ludovic Courtès2016-09-053-33/+19
| | | | | | | | | | * gnu/system/vm.scm (%vm-module-closure): Remove. (expression->derivation-in-linux-vm): Use 'source-module-closure' instead of %VM-MODULE-CLOSURE. (qemu-image): Likewise. * gnu/system/linux-initrd.scm (expression->initrd): Likewise. (flat-linux-module-directory, base-initrd): Likewise. * gnu/system/mapped-devices.scm (open-luks-device): Likewise.
* Reinstate "services: elogind: Provide '%elogind-file-systems' by extension."Ludovic Courtès2016-09-011-1/+0
| | | | This reverts commit 17073dafc59d62fb8cbb8b94d61d3ecc488ac59f.
* system: Do not create the home directory of "nobody".Ludovic Courtès2016-08-281-0/+1
| | | | | | | | Fixes <http://bugs.gnu.org/24275>. Reported by John Darrington <john@darrington.wattle.id.au>. * gnu/system/shadow.scm (%base-user-accounts): Add (create-home-directory? #f) for "nobody".
* system: Add 'create-home-directory?' field to <user-account>.Ludovic Courtès2016-08-281-0/+3
| | | | | | | | | | | | * gnu/system/shadow.scm (<user-account>)[create-home-directory?]: New field. (user-account->gexp): Serialize it. * gnu/build/activation.scm (activate-users+groups)[activate-user]: Update 'match-lambda' pattern accordingly. Pass #:create-home? to 'ensure-user'. (add-user, modify-user, ensure-user): Add #:create-home? parameter and honor it. * doc/guix.texi (User Accounts): Document it.
* Revert "services: elogind: Provide '%elogind-file-systems' by extension."Mark H Weaver2016-08-221-0/+1
| | | | This reverts commit 3cf319a3f8e23831960a0f1320122cc514188a37.
* services: elogind: Provide '%elogind-file-systems' by extension.Ludovic Courtès2016-08-221-1/+0
| | | | | | | * gnu/system/file-systems.scm (%base-file-systems): Remove %ELOGIND-FILE-SYSTEMS. * gnu/services/desktop.scm (elogind-service-type): Extend FILE-SYSTEM-SERVICE-TYPE to provide %ELOGIND-FILE-SYSTEMS.
* ui: Remove dependency on (gnu system file-systems).Ludovic Courtès2016-08-041-0/+18
| | | | | | * guix/ui.scm (specification->file-system-mapping): Move to... * gnu/system/file-systems.scm (specification->file-system-mapping): ... here.
* Merge branch 'core-updates'Mark H Weaver2016-08-042-23/+2
|\
| * install: Add nvi to the image.Ludovic Courtès2016-08-011-0/+2
| | | | | | | | | | * gnu/system/install.scm (installation-os)[packages]: Add NVI. * doc/guix.texi (Proceeding with the Installation): Mention it.
| * Merge remote-tracking branch 'origin/master' into core-updatesAndreas Enge2016-07-281-1/+28
| |\
| * \ Merge branch 'master' into core-updatesLudovic Courtès2016-07-208-300/+356
| |\ \
| * | | Merge branch 'master' into core-updatesLudovic Courtès2016-06-271-2/+1
| | | |
| * | | Merge branch 'master' into core-updatesLudovic Courtès2016-06-072-1/+5
| |\ \ \
| * \ \ \ Merge branch 'master' into core-updatesLeo Famulari2016-05-132-3/+5
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into core-updatesMathieu Lirzin2016-05-025-35/+142
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into core-updatesLudovic Courtès2016-04-063-20/+84
| |\ \ \ \ \ \
| * | | | | | | gnu: fontconfig: Find fonts in the system profile.Alex Kost2016-04-031-23/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes <http://bugs.gnu.org/22927>. Reported by myglc2 <myglc2@gmail.com>. This also reverts commit e71ef7adaece7e132a5059139122b45083ea1b39. * gnu/packages/fontutils.scm (fontconfig)[arguments]: Add /run/current-system/profile/share/fonts to --with-add-fonts configure flag. * gnu/system/shadow.scm (default-skeletons): Do not create "fonts.conf" file.
* | | | | | | | Revert "Merge branch 'core-updates'"Mark H Weaver2016-08-042-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 455859a50f88f625d13fc2f304111f02369b366b.
* | | | | | | | mapped-devices: raid-device-mapping: Avoid non-top-level 'use-modules'.Ludovic Courtès2016-08-031-17/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes <http://bugs.gnu.org/24135>. Reported by myglc2 <myglc2@gmail.com>. * gnu/system/mapped-devices.scm (open-raid-device): Avoid non-top-level 'use-modules' form.
* | | | | | | | mapped-devices: Bail out when RAID sources don't show up.Ludovic Courtès2016-08-021-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/system/mapped-devices.scm (open-raid-device): Bail out after 20 loop iterations.
* | | | | | | | mapped-devices: Make RAID device opening message clearer.Ludovic Courtès2016-08-021-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/system/mapped-devices.scm (open-raid-device): Rename 'source' to 'sources'. Make 'waiting' message more informative. (close-raid-device): Rename 'source' to 'sources'.
* | | | | | | | mapped-devices: Do not always use (gnu build file-systems).Ludovic Courtès2016-08-021-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes <http://bugs.gnu.org/24129>. Reported by myglc2 <myglc2@gmail.com>. * gnu/system/mapped-devices.scm (device-mapping-service-type): Remove 'modules' field from 'shepherd-service' form. (open-luks-device): Add 'use-modules' form.
* | | | | | | | Merge branch 'core-updates'Ludovic Courtès2016-08-012-23/+2
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | system: Add mapped devices for RAID.Andreas Enge2016-07-251-1/+28
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/system/mapped-devices.scm (raid-device-mapping, open-raid-device, close-raid-device): New variables. * doc/guix.texi (Mapped Devices): Add documentation for RAID devices, reorganize documentation for LUKS devices. Co-authored-by: Ludovic Courtès <ludo@gnu.org>