aboutsummaryrefslogtreecommitdiff
path: root/gnu/system
Commit message (Collapse)AuthorAge
* linux-initrd: Fix cross compilation.Mathieu Othacehe2019-06-25
| | | | | * gnu/system/linux-initrd.scm (default-initrd-modules): Check system name against %current-target-system first in case we are cross-compiling.
* linux-container: Remove networking service when network is shared with host.Arun Isaac2019-06-19
| | | | | | | * gnu/system/linux-container.scm (dummy-networking-service-type): New variable. (containerized-operating-system): If network is shared with host, replace static-networking-service-type with dummy-networking-service-type.
* vm: 'system-docker-image' builds in a UTF-8 locale.Ludovic Courtès2019-06-17
| | | | | | | | | | Fixes <https://bugs.gnu.org/36215>. Reported by Björn Höfling <bjoern.hoefling@bjoernhoefling.de>. This is a followup to 9c941364bfc0120e3ab5c5c4cc71a9a302d59a2b. * gnu/system/vm.scm (system-docker-image)[build]: Set GUIX_LOCPATH and call 'setlocale'.
* Add (gnu build locale).Ludovic Courtès2019-06-07
| | | | | | | | | | * gnu/build/locale.scm: New file. * gnu/local.mk (MODULES_NOT_COMPILED): Add it. * gnu/installer/locale.scm (normalize-codeset): Remove. * gnu/system/locale.scm (localedef-command): Remove. (single-locale-directory): Use (gnu build locale). (glibc-supported-locales)[build]: Likewise, and remove 'read-supported-locales'.
* linux-container: Check if nscd run directory exists when container is run.Arun Isaac2019-05-25
| | | | | | | | | * gnu/system/linux-container.scm (containerized-operating-system): (container-script): Check for existence of the host nscd run directory in the container script. This check should be run when the container is started, not when the container script is created. [network-mappings]: Delete variable. [nscd-run-directory, nscd-mapping]: New variables.
* Merge branch 'version-1.0.1'Ludovic Courtès2019-05-20
|\
| * vm-image: Remove ModemManager.Ludovic Courtès2019-05-16
| | | | | | | | | | | | | | This is a followup to 36f5d78d4af02ad23c33bfb46702d92086bf2796. * gnu/system/examples/vm-image.tmpl (services): Remove MODEM-MANAGER-SERVICE-TYPE.
| * vm-image: Remove 'network-manager-applet' from system profile.Ludovic Courtès2019-05-16
| | | | | | | | | | | | | | This is a followup to 05d907ac6fc6e139389a91ab5540c0dc573a8ce7. * gnu/system/examples/vm-image.tmpl (services): Remove 'network-manager-applet'.
* | vm: Create installation media with MBR and HFS only, no GPT.Danny Milosavljevic2019-05-18
|/ | | | | | | | | | | | | | | * gnu/build/vm.scm (make-iso9660-image): Accept XORRISO, GRUB-MKRESCUE-ENVIRONMENT. * gnu/system/vm.scm (iso9660-image): Pass XORRISO; accept GRUB-MKRESCUE-ENVIRONMENT. (system-disk-image): Pass GRUB-MKRESCUE-ENVIRONMENT. * gnu/packages/patches/xorriso-no-mbr-in-inner-efi.patch: New file. * gnu/packages/patches/xorriso-no-partition-table-in-inner-efi.patch: New file. * gnu/local.mk (dist_patch_DATA): Add them. * gnu/packages/cdrom.scm (xorriso)[source]: Add patches. [arguments]<#:phases>[install-frontends]: Add phase.
* vm: 'system-docker-image' provides an entry point.Ludovic Courtès2019-05-15
| | | | | | | | | | | | | This simplifies use of images created with 'guix system docker-image'. * gnu/system/vm.scm (system-docker-image)[boot-program]: New variable. [os]: Add it to the GC roots. [build]: Pass #:entry-point to 'build-docker-image'. * gnu/tests/docker.scm (run-docker-system-test): New procedure. (%test-docker-system): New variable. * doc/guix.texi (Invoking guix system): Remove GUIX_NEW_SYSTEM hack and '--entrypoint' from the example. Mention 'docker create', 'docker start', and 'docker exec'.
* linux-container: Compute essential services for THIS-OPERATING-SYSTEM.Ludovic Courtès2019-05-15
| | | | | | | | | | | | | | | | | | Previously, the 'essential-services' would correspond to the initial, non-containerized OS. Thus, all the file systems removed in 'container-essential-services' would actually still be there because the essential services would be computed on the non-containerized OS. This is a followup to 69cae3d3356a69b7fe69481338f760545995485e. * gnu/system/linux-container.scm (container-essential-services): Call 'operating-system-default-essential-services' to get the baseline services. (containerized-operating-system): Pass THIS-OPERATING-SYSTEM, not OS, to 'container-essential-services'. Add a dummy root file system to 'file-systems'. (container-script)[mountable-file-system?]: New procedure. Use it.
* linux-container: Do not add %CONTAINER-FILE-SYSTEMS to Docker image OSes.Ludovic Courtès2019-05-15
| | | | | | | | | | | | | | | Previously, 'guix system docker-image' would end up providing an OS that would try to mount all of %CONTAINER-FILE-SYSTEMS as well as /gnu/store, which is bound to fail in unprivileged Docker. This patch makes it so that 'guix system container' still gets those file systems, but 'guix system docker-image' doesn't. * gnu/system/linux-container.scm (containerized-operating-system): Add #:extra-file-systems parameter and honor it. Do not include %STORE-MAPPING and SHARED-NETWORK-FILE-MAPPINGS. (container-script): Add %STORE-MAPPING and optionally NETWORK-MAPPINGS to MAPPINGS and pass #:extra-file-systems.
* vm: Auto-detect if inputs should be registered.Maxim Cournoyer2019-05-13
| | | | | | | | | | | | | | | | | | | | | The default value of the argument REGISTER-CLOSURE? of the ISO9660-IMAGE, QEMU-IMAGE and SYSTEM-DOCKER-IMAGE procedures can be computed automatically, since the operating-system definition is available in its context. When the operating-system definition does not contain the GUIX-SERVICE-TYPE, do not register the closure in the database of Guix, as it takes time and doesn't serve a purpose. * gnu/system/vm.scm (has-guix-service-type): Add predicate. (iso9660-image)[register-closures?]: Use it to compute the argument's default value. (qemu-image)[register-closures?]: Likewise, and update docstring. (system-docker-image)[register-closures?]: Likewise. (system-disk-image): Do not explicit a value for the REGISTER-CLOSURES? argument of the ISO9660-IMAGE and QEMU-IMAGE procedure calls, so that its default value is used instead. * guix/scripts/system.scm (system-derivation-for-action): Do not explicit a value for the REGISTER-CLOSURES? argument of the SYSTEM-DOCKER-IMAGE procedure call, so that its default value is used instead.
* locale: Add 'glibc-supported-locales'.Ludovic Courtès2019-05-13
| | | | * gnu/system/locale.scm (glibc-supported-locales): New procedure.
* linux-container: Support container network sharing.Arun Isaac2019-05-14
| | | | | | | | | | | | | | | | | | | * gnu/system/linux-container.scm (container-essential-services): If network is to be shared with the host, remove network configuration files from etc service. (containerized-operating-system): If network is to be shared with the host, remove nscd service and map host's /var/run/nscd if it exists. (container-script): If network is to be shared with the host, do not create network namespace. * guix/scripts/system.scm (system-derivation-for-action): Add #:container-shared-network? argument. (perform-action): Add #:container-shared-network? argument. (show-help): Add "-N, --network" help information. (%options): Add network option. (process-action): Call perform-action with #container-shared-network? argument. * doc/guix.texi (Invoking guix system): Document the "-N, --network" option. Co-authored-by: Christopher Baines <mail@cbaines.net>
* install: Add node name in Russian.Ludovic Courtès2019-05-13
| | | | * gnu/system/install.scm (%installation-node-names): Add "ru".
* linux-container: Improve filtering of unnecessary file systems.Ludovic Courtès2019-05-10
| | | | | * gnu/system/linux-container.scm (containerized-operating-system)[user-file-systems]: Add trailing slash for the "/dev/" and "/sys/" prefixes.
* system: pam: Add #:login-uid? parameter to 'unix-pam-service'.Ludovic Courtès2019-05-09
| | | | | | * gnu/system/pam.scm (unix-pam-service): Add #:login-uid? parameter. In then 'session' field, add "pam_loginuid.so" as required when LOGIN-UID? is true.
* uuid: 'fat-uuid->string' preserves leading zeros.Ludovic Courtès2019-05-07
| | | | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/35582>. Reported by sirgazil <sirgazil@zoho.com>. Previously, leading zeros would be removed, leading to an "invalid" UUID: (uuid->string (uuid "00CA-050E" 'fat32)) ⇒ "CA-50E" (string->uuid "CA-50E" 'fat32) ⇒ #f * gnu/system/uuid.scm (fat-uuid->string): Pad digits with zeros. * tests/uuid.scm ("uuid, FAT32, leading zeros preserved"): New test.
* vm: Build ISOs and VM images in a UTF-8 environment.Ludovic Courtès2019-05-01
| | | | | | | | Fixes a bug whereby building an image containing non-ASCII file names would fail due to improper decoding of file names. * gnu/system/vm.scm (iso9660-image, qemu-image): Set GUIX_LOCPATH and call 'setlocale' in the build environment.
* vm-image: Add 'label' field.Ludovic Courtès2019-05-01
| | | | * gnu/system/examples/vm-image.tmpl (label): New field.
* vm-image: Add 'nss-certs' to the global package set.Ludovic Courtès2019-04-28
| | | | * gnu/system/examples/vm-image.tmpl (packages): Add NSS-CERTS.
* vm-image: Allow for password-less sudo.Ludovic Courtès2019-04-27
| | | | * gnu/system/examples/vm-image.tmpl (sudoers-file): New field.
* vm-image: Mention 'info guix' in the MOTD.Ludovic Courtès2019-04-27
| | | | * gnu/system/examples/vm-image.tmpl (vm-image-motd): Mention 'info guix'.
* vm-image: Add a font to the global profile.Ludovic Courtès2019-04-27
| | | | | * gnu/system/examples/vm-image.tmpl (packages): Add FONT-BITSTREAM-VERA, for use by xfce-terminal, IceCat, etc.
* doc: Update bit about SSH in the VM.Ludovic Courtès2019-04-27
| | | | | | | * doc/guix.texi (Running Guix in a VM): Remove mentions of 'lsh-server'; mention 'openssh-service-type' and add a cross-reference. * gnu/system/examples/vm-image.tmpl (services): Add a commented-out line for 'openssh-service-type'.
* vm-image: Remove NetworkManager & co. and add the DHCP client.Ludovic Courtès2019-04-26
| | | | | * gnu/system/examples/vm-image.tmpl (services): Remove wpa-supplicant, cups-pk-helper, and NetworkManager. Add DHCP-CLIENT-SERVICE-TYPE.
* vm-image: Use the actual file name of the current file.Ludovic Courtès2019-04-26
| | | | | * gnu/system/examples/vm-image.tmpl (this-file): Use 'basename' and 'current-source-location'.
* system: Provide a new VM image configuration.Ludovic Courtès2019-04-26
| | | | | * gnu/system/examples/vm-image.tmpl: Rewrite. * doc/guix.texi (Running Guix in a VM): Adjust accordingly.
* vm: 'system-disk-image' no longer requires the OS to define the "/" file system.Ludovic Courtès2019-04-25
| | | | | | | | | | Previously 'guix system disk-image' would fail if the OS didn't define a "/" file system, even though it actually overrides that file system. * gnu/system/vm.scm (system-disk-image)[root-uuid]: Turn into a procedure. Call 'root-uuid' on a variant of OS with a "/" file system and inherit from that.
* install: Add node name in Castellano.Ludovic Courtès2019-04-25
| | | | * gnu/system/install.scm (%installation-node-names): Add "es".
* linux-container: Remove '%containerized-shepherd-service' hack.Ludovic Courtès2019-04-23
| | | | | | | | | This hack worked around a defect in the Shepherd 0.5.0 and is no longer needed. * gnu/services/shepherd.scm (%containerized-shepherd-service): Remove. * gnu/system/linux-container.scm (container-essential-services): Don't use it.
* services: account: Make 'user-homes' a one-shot service.Ludovic Courtès2019-04-23
| | | | | * gnu/system/shadow.scm (account-shepherd-service): Add 'one-shot?' field. Return #t from 'start'.
* install: Pass "quiet" to the kernel.Ludovic Courtès2019-04-23
| | | | | | This is a followup to 5582aa8e31bf88f981caedeb4fbbb758486b6ca7. * gnu/system/install.scm (installation-os)[kernel-arguments]: Add "quiet".
* install: Pass "modprobe.blacklist=radeon".Ludovic Courtès2019-04-21
| | | | * gnu/system/install.scm (installation-os)[kernel-arguments]: New field.
* install: Provide a meaningful label.Ludovic Courtès2019-04-15
| | | | * gnu/system/install.scm (installation-os)[label]: New field.
* vm: Do not mount /xchg with "cache=loose".Ludovic Courtès2019-04-14
| | | | | | | | Fixes <https://bugs.gnu.org/33639>. * gnu/system/vm.scm (%linux-vm-file-systems): Remove "cache=loose" for /xchg. (system-docker-image): Remove 'sync' call, now unneeded, and which was probably insufficient.
* install: Use a font with more glyphs on tty2.Ludovic Courtès2019-04-12
| | | | | * gnu/system/install.scm (%installation-services): For 'console-font-service-type', use LatGrkCyr-8x16 on tty2.
* installer: Choosing a locale opens the translated manual on tty2.Ludovic Courtès2019-04-12
| | | | | | | | | | | | | Suggested by Florian Pelz. * gnu/system/install.scm (%installation-node-names): New variable. (log-to-info): Expect the chosen locale as an argument. Compute the language, Info file name, and node name. Install the locale. (documentation-shepherd-service): Add 'locale' parameter to the 'start' action and honor it. Set GUIX_LOCPATH and TERM as environment variables for the process. * gnu/installer.scm (apply-locale): Use (gnu services herd). Call 'stop-service' and 'start-service' with the chosen locale.
* install: Add standalone documentation service.Ludovic Courtès2019-04-12
| | | | | | | | * gnu/system/install.scm (log-to-info): Add 'tty' and 'user' parameters. Open the tty and change UIDs/GIDs. (documentation-shepherd-service): New procedure. (%documentation-users, documentation-service-type): New variables. (%installation-services): Use it instead of 'mingetty-service'.
* doc: Adjust desktop instructions for GDM.Ludovic Courtès2019-04-10
| | | | * gnu/system/examples/desktop.tmpl: Adjust comment that referred to SLiM.
* install: Tweak motd.Ludovic Courtès2019-04-07
| | | | * gnu/system/install.scm (%installation-services): Tweak motd.
* install: Remove "GuixSD".Ludovic Courtès2019-04-07
| | | | | * gnu/system/install.scm (%installation-services): Remove "Guix System Distribution" from motd.
* services: xorg: Add 'set-xorg-configuration'.Ludovic Courtès2019-04-05
| | | | | | | | * gnu/services/xorg.scm (gdm-service-type)[compose, extend]: New fields. (set-xorg-configuration): New procedure. * doc/guix.texi (Keyboard Layout): Use it. (X Window): Document it. * gnu/system/examples/desktop.tmpl: Add 'keyboard-layout' fields.
* gnu: Add example system configuration for asus-c201.Timothy Sample2019-04-03
| | | | | | | * gnu/system/examples/asus-c201.tmpl: New file. * Makefile.am (EXAMPLES): Add it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* system: Fix typo in desktop example.Ludovic Courtès2019-03-28
| | | | | | | The typo was introduced in 391e0d65d7129d53c025963d2758724e75626eb4. * gnu/system/examples/desktop.tmpl: Use XFCE-DESKTOP-SERVICE-TYPE, not XFCE-DESKTOP-SERVICE.
* vm: Ask QEMU for more RAM in the VM that makes ISO9660 images.Ludovic Courtès2019-03-27
| | | | | * gnu/system/vm.scm (iso9660-image): Pass #:memory-size to 'expression->derivation-in-linux-vm'.
* services: Deprecate 'xfce-desktop-service'.Ludovic Courtès2019-03-27
| | | | | | | | | | * gnu/services/desktop.scm (xfce-desktop-service-type)[default-value] [description]: New fields. (xfce-desktop-service): Deprecate. * gnu/system/examples/desktop.tmpl: Use the (service …) form. * gnu/installer/services.scm (%desktop-environments): Add TODO comment. * doc/guix.texi (Desktop Services): Adjust accordingly, and fix spelling of "Xfce" throughout.
* services: Deprecate 'gnome-desktop-service'.Ludovic Courtès2019-03-27
| | | | | | | | | | * gnu/services/desktop.scm (gnome-desktop-service-type)[default-value]: New field. (gnome-desktop-service): Deprecate. * gnu/installer/services.scm (%desktop-environments): Use the (service …) form for GNOME. * gnu/system/examples/desktop.tmpl: Likewise. * doc/guix.texi (Desktop Services): Adjust accordingly.
* system: Add 'essential-services' field to <operating-system>.Ludovic Courtès2019-03-25
| | | | | | | | | | | | | | | | | | * gnu/system.scm (<operating-system>)[essential-services]: New field. (operating-system-directory-base-entries): Remove #:container? keyword and keep only the not-container branch. (essential-services): Likewise. (operating-system-services): Likewise, and call 'operating-system-essential-services' instead of 'essential-services'. (operating-system-activation-script): Remove #:container?. (operating-system-boot-script): Likewise. (operating-system-derivation): Likewise. * gnu/system/linux-container.scm (container-essential-services): New procedure. (containerized-operating-system): Use it and set the 'essential-services' field. (container-script): Remove call to 'operating-system-derivation'. * gnu/system/vm.scm (system-docker-image): Likewise. * doc/guix.texi (operating-system Reference): Document 'essential-services'.