summaryrefslogtreecommitdiff
path: root/guix/build
Commit message (Collapse)AuthorAge
...
| * system: When unionfs-fuse is used for /, don't kill it when halting.Ludovic Courtès2014-05-14
| | | | | | | | | | | | | | | | * guix/build/linux-initrd.scm (pidof): New procedure. (mount-root-file-system)[mark-as-not-killable]: New procedure. Use it for unionfs when VOLATILE-ROOT?. * gnu/services/base.scm (%do-not-kill-file): New variable. (user-processes-service)[stop]: Honor it.
| * syscalls: Add 'processes' to list all the live processes.Ludovic Courtès2014-05-14
| | | | | | | | * guix/build/syscalls.scm (kernel?, processes): New procedures.
| * system: Make accounts and groups at activation time.Ludovic Courtès2014-05-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/services/base.scm (guix-build-accounts): Remove #:gid parameter; add #:group. Remove 'password' and 'gid' fields in 'user-account' form, and add 'group'. (guix-service): Remove #:build-user-gid parameter. Remove 'id' field in 'user-group' form. * gnu/system.scm (etc-directory): Remove #:groups and #:accounts. No longer produce files "passwd", "shadow", and "group". Adjust caller accordingly. (%root-account): New variable. (operating-system-accounts): Add 'users' variable. Add %ROOT-ACCOUNT only of 'operating-system-users' doesn't already contain a root account. (user-group->gexp, user-account->gexp): New procedures. (operating-system-boot-script): Add calls to 'setenv' and 'activate-users+groups' in gexp. * gnu/system/linux.scm (base-pam-services): Add PAM services for "user{add,del,mode}" and "group{add,del,mod}". * gnu/system/shadow.scm (<user-account>)[gid]: Rename to... [group]: ... this. [supplementary-groups]: New field. [uid, password]: Default to #f. (<user-group>)[id]: Default to #f. (group-file, passwd-file): Remove. * gnu/system/vm.scm (operating-system-default-contents)[user-directories]: Remove. Add "/home" to the directives. * guix/build/activation.scm (add-group, add-user, activate-users+groups): New procedures.
| * services: Add 'file-system-service'.Ludovic Courtès2014-05-10
| | | | | | | | | | | | | | | | | | | | * gnu/services/base.scm (file-system-service): New procedure. (user-processes-service): Add 'requirements' parameter. * gnu/services/dmd.scm (dmd-configuration-file): Use (guix build linux-initrd). * guix/build/linux-initrd.scm (guix): Export 'check-file-system'. * gnu/system.scm (file-union): New procedure. (essential-services): Use it. Add that to the returned list.
| * Add (guix build syscalls).Ludovic Courtès2014-05-10
| | | | | | | | | | | | | | | | * guix/build/syscalls.scm, tests/syscalls.scm: New files. * Makefile.am (MODULES): Add guix/build/syscalls.scm. (SCM_TESTS): Add tests/syscalls.scm. * guix/utils.scm (%libc-errno-pointer, errno): Remove; take from (guix build syscalls).
| * linux-initrd: Append to /etc/mtab.Ludovic Courtès2014-05-10
| | | | | | | | | | * guix/build/linux-initrd.scm (mount-file-system): Open /etc/mtab in append mode.
| * linux-initrd: Don't leak /dev/console file descriptors.Ludovic Courtès2014-05-08
| | | | | | | | | | | | * guix/build/linux-initrd.scm (switch-root): Simplify /dev/console code. This fixes a bug where we would leak the IN and OUT file descriptors.
| * git-download: Disable TLS certificate verification.Ludovic Courtès2014-05-08
| | | | | | | | * guix/build/git.scm (git-fetch): Add 'setenv' call.
| * linux-initrd: Update /etc/mtab.Ludovic Courtès2014-05-08
| | | | | | | | | | | | * guix/build/linux-initrd.scm (mount-root-file-system): Populate /root/etc/mtab. (mount-file-system): Update ROOT/etc/mtab.
| * Remove now unneeded (guix build gnome) module.Ludovic Courtès2014-05-07
| | | | | | | | | | * guix/build/gnome.scm: Remove. * Makefile.am (MODULES): Update accordingly.
| * linux-initrd: Delete files from the initrd ramfs when switching roots.Ludovic Courtès2014-05-06
| | | | | | | | | | | | | | | | | | * guix/build/linux-initrd.scm (switch-root): Delete file from the old root. Chdir to / after 'chroot' call. Re-open file descriptors 0, 1, and 2. (boot-system): Move 'loading' message after the 'switch-root' call. * gnu/system.scm (operating-system-boot-script): Add loop that closes file descriptor before calling 'execl'.
| * linux-initrd: Improve root file system switching.Ludovic Courtès2014-05-04
| | | | | | | | | | | | | | | | * guix/build/linux-initrd.scm (move-essential-file-systems, switch-root): New procedures. (MS_MOVE): New variable. (boot-system): Remove 'mount-essential-file-systems' call for ROOT. Use 'switch-root' instead of chdir + chroot.
| * linux-initrd: Check the root and other early file systems.Ludovic Courtès2014-05-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/system.scm (operating-system-derivation)[boot-file-systems]: Keep "/". * gnu/system/linux-initrd.scm (file-system->spec): Keep the 'check?' flag. (qemu-initrd)[helper-packages]: New variable. Pass it as #:to-copy. <gexp>: Add 'set-path-environment-variable' call. Remove #:unionfs argument for 'boot-system'. * gnu/system/vm.scm (%linux-vm-file-systems): Add 'check?' field/ (virtualized-operating-system): Likewise for the "9p" file system. * guix/build/linux-initrd.scm (mount-root-file-system): Change #:unionfs default. Call 'check-file-system' before mounting ROOT, when VOLATILE-ROOT? is false. (check-file-system): New procedure. (mount-file-system): Honor 'check?' element in list; add 'check-file-system' call. (boot-system): Remove #:root-fs-type and #:unionfs parameters. [root-mount-point?, root-fs-type]: New variables. Call 'mount-file-system' on all MOUNTS but "/".
| * activation: Fix deletion of setuid programs.Ludovic Courtès2014-05-04
| | | | | | | | | | * guix/build/activation.scm (activate-setuid-programs): When %SETUID-DIRECTORY exists, pass the right file names to 'delete-file'.
| * vm: Make root file system type a parameter, and default to ext4.Ludovic Courtès2014-05-03
| | | | | | | | | | | | | | | | | | | | | | | | * gnu/system/vm.scm (qemu-image): Add #:file-system-type parameter. Pass it to 'initialize-hard-disk'. * guix/build/linux-initrd.scm (mount-root-file-system): Always honor TYPE. (boot-system): Change #:root-fs-type to default to "ext4". Update docstring. * guix/build/vm.scm (initialize-hard-disk): Remove #:mkfs parameter; add #:file-system-type. Adjust 'mkfs' invocation and 'mount' call to honor #:file-system-type.
| * system: Add first-class file system declarations.Ludovic Courtès2014-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/system.scm (<operating-system>)[initrd]: Default to 'qemu-initrd'. (<file-system>): New record type. (operating-system-root-file-system): New procedure. (operating-system-derivation): Take the device name for GRUB from 'operating-system-root-file-system'. Pass the 'operating-system-initrd' procedure the list of boot file systems. * gnu/system/linux-initrd.scm (file-system->spec): New procedure. (qemu-initrd): Add 'file-systems' parameter, and remove #:mounts parameter. [file-system-type-predicate]: New procedure. [linux-modules]: Use it. Adjust #:mounts argument in 'boot-system' call. (gnu-system-initrd): Remove. * gnu/system/vm.scm (%linux-vm-file-systems): New variable. (expression->derivation-in-linux-vm): Adjust call to 'qemu-initrd'. (virtualized-operating-system): New procedure. (system-qemu-image/shared-store-script)[initrd]: Remove. Use 'virtualized-operating-system'. Get the 'initrd' file from OS-DRV. * guix/build/linux-initrd.scm (mount-qemu-smb-share, mount-qemu-9p): Remove. (MS_RDONLY, MS_BIND): New global variables. (bind-mount): Remove local 'MS_BIND' definition. (mount-root-file-system): New procedure, with code formerly in 'boot-system'. (mount-file-system): New procedure. (boot-system): Add #:root-fs-type parameter. Remove 'MS_RDONLY' local variable. Use 'mount-root-file-system' and 'mount-file-system'. * doc/guix.texi (Using the Configuration System): Add 'file-system' declaration.
| * system: Add support for setuid binaries.Ludovic Courtès2014-04-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/system.scm (<operating-system>)[pam-services, setuid-programs]: New fields. (etc-directory)[bashrc]: Prepend /run/setuid-programs to $PATH. (operating-system-etc-directory): Honor 'operating-system-pam-services'. (%setuid-programs): New variable. (operating-system-boot-script): Add (guix build utils) to the set of imported modules. Call 'activate-setuid-programs' in boot script. * gnu/system/linux.scm (base-pam-services): New procedure. * guix/build/activation.scm (%setuid-directory): New variable. (activate-setuid-programs): New procedure. * build-aux/hydra/demo-os.scm: Add 'pam-services' field.
| * linux-initrd: Allow setuid binaries from the unionfs to run.Ludovic Courtès2014-04-30
| | | | | | | | | | * guix/build/linux-initrd.scm (boot-system): Pass the 'suid' option to UNIONFS.
| * system: Add (guix build activation).Ludovic Courtès2014-04-30
| | | | | | | | | | | | | | | | | | * gnu/services/dmd.scm (dmd-configuration-file): Remove 'etc' parameter. Move /etc activation code to... * guix/build/activation.scm: ... here; new file. * gnu/system.scm (operating-system-boot-script): Augment script: add (guix build activation) to the load path; call 'activate-etc'. * Makefile.am (MODULES): Add guix/build/activation.scm.
| * guix: cmake: Add input and package libraries to the rpath, and adapt packageAndreas Enge2014-04-27
| | | | | | | | | | | | | | | | | | | | | | definitions accordingly. * guix/build/cmake-build-system.scm (configure): Add flags. * gnu/packages/maths.scm (lapack): Drop special code. * gnu/packages/ssh.scm (libssh): Drop special code. * gnu/packages/slim.scm (slim): Drop special code and enable shared library. Co-authored-by: Eric Bavier <bavier@member.fsf.org>
| * download: Improve progress report output.Ludovic Courtès2014-04-16
| | | | | | | | | | * guix/build/download.scm (url-fetch): Make current-output-port unbuffered.
| * linux-initrd: Mount / as a unionfs when asking for a volatile root.Ludovic Courtès2014-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): Make /dev/fuse. (boot-system): Add #:unionfs parameter. Invoke UNIONFS instead of copying files over when VOLATILE-ROOT? is true. * gnu/system/linux-initrd.scm (expression->initrd): Add #:inputs parameter. [files-to-copy]: New procedure. [builder]: Add 'to-copy' parameter; honor it. (qemu-initrd)[linux-modules]: Add 'fuse.ko' when VOLATILE-ROOT?. Pass UNIONFS-FUSE/STATIC as #:inputs; change builder to pass #:unionfs to 'boot-system'.
* | utils: 'delete-file-recursively' doesn't follow mount points by default.Ludovic Courtès2014-05-20
| | | | | | | | | | * guix/build/utils.scm (delete-file-recursively): Add #:follow-mounts? parameter and honor it.
* | build-system/gnu: Reset timestamps on build tree when source is a directory.Ludovic Courtès2014-04-14
|/ | | | | | | | * guix/build/utils.scm (copy-recursively): Add #:keep-mtime? parameter and honor it. * guix/build/gnu-build-system.scm (unpack): Use #:keep-mtime? #t. * gnu/packages/admin.scm (shadow)[arguments]: Remove 'reset-timestamps' phase.
* vm: Move image creation to (guix build vm); split into several procedures.Ludovic Courtès2014-04-11
| | | | | | | | * guix/build/vm.scm (read-reference-graph, initialize-partition-table, install-grub, populate-store, evaluate-populate-directive, reset-timestamps, initialize-hard-disk): New procedures. * gnu/system/vm.scm (qemu-image): Change 'builder' to a call to 'initialize-hard-disk'.
* vm: Add (guix build vm) module.Ludovic Courtès2014-04-11
| | | | | | * guix/build/vm.scm: New file. * Makefile.am (MODULES): Add it. * gnu/system/vm.scm (expression->derivation-in-linux-vm): Use it.
* gnu: linux-initrd: Mount /dev/pts at boot time.Ludovic Courtès2014-04-09
| | | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): Remove 'mount' call for /dev/pts. (boot-system): Add it here, after 'chroot' call.
* gnu: linux-initrd: Better populate /dev.Ludovic Courtès2014-04-09
| | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): Make /dev/{ptmx,tty} world-writable. Build additional character devices.
* union: Ensure that the output is always a directory.Mark H Weaver2014-04-03
| | | | | | | | | Fixes the creation of single-package profiles, reported by Ludovic Courtès. * guix/build/union.scm (union-build): Add new internal procedure 'union-of-directories' that always creates a directory, containing the code previously used only to merge multiple directories. Call it from the multiple-directory case in 'union' and from the top-level 'union-build'.
* union: Rewrite to be faster; handle symlink/directory conflicts.Mark H Weaver2014-04-02
| | | | | | | | | * guix/build/union.scm: Rewrite; only 'file=?' remains unchanged. Remove 'tree-union' and 'delete-duplicate-leaves' exports. Merge inputs in a breadth-first fashion. Follow symlinks for purposes of making decisions about the merge. * tests/union.scm: Remove tests of 'tree-union' and 'delete-duplicate-leaves'.
* Add (guix svn-download).Sree Harsha Totakura2014-03-27
| | | | | | | * guix/svn-download.scm, guix/build/svn.scm: New files. * Makefile.am (MODULES): Add them. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* Merge branch 'core-updates'Ludovic Courtès2014-03-26
|\
| * Change default store values from /nix/store to /gnu/store.Ludovic Courtès2014-03-10
| | | | | | | | | | | | | | | | | | * gnu/packages/ld-wrapper.scm (%store-directory): Change the default to /gnu/store. * guix/build/utils.scm (%store-directory): New procedure. (remove-store-references): Use it for the default value of 'store'. * guix/packages.scm (patch-and-repack)[builder]: Change default store to /gnu/store.
| * Merge branch 'master' into core-updatesLudovic Courtès2014-03-10
| |\
| * | build-system/gnu: Allow the source to be a directory.Ludovic Courtès2014-02-22
| | | | | | | | | | | | | | | | | | | | | * guix/build/gnu-build-system.scm (unpack): Check if SOURCE is a directory, and copy it locally if it is. * gnu/packages/libwebsockets.scm (libwebsockets)[arguments]: Remove 'unpack' phase.
| * | Merge branch 'master' into core-updatesLudovic Courtès2014-02-22
| |\ \ | | | | | | | | | | | | | | | | Conflicts: gnu-system.am
| * | | build-system/gnu: Set the docdir to "share/doc"John Darrington2014-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/build/gnu-build-system.scm (configure): Change docdir directory from "doc" to "share/doc". Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| * | | Revert "build-system/gnu: Pass --localstatedir=/var --sharedstatedir=/com."Ludovic Courtès2014-01-28
| | | | | | | | | | | | | | | | This reverts commit 65529e49ff5b9052544271b1b7923feed4312849.
| * | | build-system/gnu: Pass --localstatedir=/var --sharedstatedir=/com.Ludovic Courtès2014-01-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by John Darrington <john@darrington.wattle.id.au> and Mark H Weaver <mhw@netris.org>. * guix/build/gnu-build-system.scm (configure): Pass --localstatedir=/var --sharedstatedir=/com. * gnu/packages/admin.scm (dmd): Remove 'arguments' field. * gnu/packages/avahi.scm (avahi): Remove --localstatedir flag. * gnu/packages/glib.scm (dbus): Likewise. * gnu/packages/package-management.scm (guix): Likewise. * gnu/packages/pulseaudio.scm (pulseaudio): Likewise.
| * | | Merge branch 'master' into core-updatesLudovic Courtès2014-01-25
| |\ \ \
| * | | | gnu: gnu-build-system: Add CC_FOR_BUILD to configure flags.John Darrington2013-12-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/build/gnu-build-system.scm: Add new configure flag: CC_FOR_BUILD=gcc * gnu/packages/gnupg.scm, gnu/packages/guile.scm, gnu/packages/make-bootstrap.scm: remove CC_FOR_BUILD from these package descriptions. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* | | | | download: Don't use 'http-get*' on Guile 2.0.10+.Ludovic Courtès2014-03-25
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | * guix/build/download.scm (http-fetch)[post-2.0.7?]: Use 'string->number' and numeric comparison. This fixes version comparison with "2.0.10" and subsequent 2.0 releases.
* | | | gnu: linux-initrd: Make the pseudo-tty device nodes.Ludovic Courtès2014-03-10
| |_|/ |/| | | | | | | | | | | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): Create /dev/ptmx and /dev/pts. * gnu/system/vm.scm (qemu-image): Umount /fs/dev/pts before /fs.
* | | Add (guix git-download).Ludovic Courtès2014-02-21
| | | | | | | | | | | | | | | | | | * guix/git-download.scm, guix/build/git.scm: New files. * Makefile.am (MODULES): Add them. * guix/packages.scm (<origin>): Fix comment for 'method' field.
* | | union: Do not compare directories upon collision.Ludovic Courtès2014-02-10
| | | | | | | | | | | | | | | | | | | | | * guix/build/union.scm (file=?): Return #f if FILE1 and FILE2 are not regular files. Fixes a bug whereby collisions among directories would lead to the invocation of 'file=?' and thus 'call-with-input-file' on directories. Reported by Mark H. Weaver <mhw@netris.org>.
* | | download: Provide a 'User-Agent' field in HTTP requests.Ludovic Courtès2014-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes <http://bugs.gnu.org/16703>. Reported by Raimon Grau <raimonster@gmail.com>. * guix/build/download.scm (http-fetch)[headers]: New variable. Pass it as #:headers or #:extra-headers to 'http-get' and 'http-get*'.
* | | gnu: linux-initrd: When booting, chdir to the new root before calling 'chroot'.Ludovic Courtès2014-02-09
| | | | | | | | | | | | | | | * guix/build/linux-initrd.scm (boot-system): Add 'chdir' call right before 'chroot'.
* | | gnu: linux-initrd: Build /dev/input devices.Ludovic Courtès2014-02-01
| | | | | | | | | | | | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): Make dev/input devices.
* | | gnu: linux-initrd: Make /dev/{mem,kmem}.Ludovic Courtès2014-02-01
| | | | | | | | | | | | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): Make dev/{mem,kmem}.
* | | gnu: linux-initrd: Allow the root file system to be volatile.Ludovic Courtès2014-01-31
| | | | | | | | | | | | | | | | | | * gnu/system/linux-initrd.scm (qemu-initrd): Add 'volatile-root?' parameter. * guix/build/linux-initrd.scm (boot-system): Likewise. Honor it.