aboutsummaryrefslogtreecommitdiff
path: root/gnu/tests
ModeNameSize
-rw-r--r--audio.scm4069logplainabout
-rw-r--r--base.scm43791logplainabout
-rw-r--r--cachefilesd.scm2414logplainabout
-rw-r--r--ci.scm4334logplainabout
-rw-r--r--cups.scm4141logplainabout
d---------data50logplain
-rw-r--r--databases.scm16500logplainabout
-rw-r--r--desktop.scm12729logplainabout
-rw-r--r--dict.scm4473logplainabout
-rw-r--r--docker.scm18911logplainabout
-rw-r--r--emacs.scm4104logplainabout
-rw-r--r--file-sharing.scm11386logplainabout
-rw-r--r--ganeti.scm10906logplainabout
-rw-r--r--gdm.scm4740logplainabout
-rw-r--r--guix.scm14967logplainabout
-rw-r--r--image.scm8539logplainabout
-rw-r--r--install.scm80388logplainabout
-rw-r--r--ldap.scm5683logplainabout
-rw-r--r--lightdm.scm6125logplainabout
-rw-r--r--linux-modules.scm7537logplainabout
-rw-r--r--mail.scm22965logplainabout
-rw-r--r--messaging.scm8876logplainabout
-rw-r--r--monitoring.scm11236logplainabout
-rw-r--r--networking.scm32068logplainabout
-rw-r--r--nfs.scm14743logplainabout
-rw-r--r--package-management.scm3761logplainabout
-rw-r--r--pam.scm3789logplainabout
-rw-r--r--reconfigure.scm10561logplainabout
-rw-r--r--rsync.scm5856logplainabout
-rw-r--r--samba.scm6979logplainabout
-rw-r--r--sddm.scm4056logplainabout
-rw-r--r--security-token.scm2268logplainabout
-rw-r--r--security.scm7593logplainabout
-rw-r--r--singularity.scm5757logplainabout
-rw-r--r--ssh.scm10885logplainabout
-rw-r--r--telephony.scm17233logplainabout
-rw-r--r--version-control.scm17456logplainabout
-rw-r--r--virtualization.scm18032logplainabout
-rw-r--r--vnc.scm8905logplainabout
-rw-r--r--vnstat.scm5923logplainabout
-rw-r--r--web.scm20655logplainabout
mlink file (string-append directory "/" (transform file)))) (define (directory-content directory) "Creates a list of absolute path names inside DIRECTORY." (map (lambda (name) (string-append directory name)) (or (scandir directory (lambda (name) (not (member name '("." ".."))))) '()))) (define name-ends-with-/? (cut string-suffix? "/" <>)) (define (name-is-store-entry? name) "Return #t if NAME is a direct store entry and nothing inside." (not (string-index (strip-store-file-name name) #\/))) (let* ((collection (string-append #$output "/collection")) (files '#$files) (directories (filter name-ends-with-/? files)) (names-from-directories (append-map (lambda (directory) (directory-content directory)) directories)) (names (append names-from-directories (remove name-ends-with-/? files)))) (mkdir-p collection) (if (every file-exists? names) (begin (for-each (lambda (name) (symlink-to name collection (if (name-is-store-entry? name) strip-store-file-name basename))) names) #t) #f))))) (gexp->derivation "bootloader-collection" build #:local-build? #t #:substitutable? #f #:properties `((type . profile-hook) (hook . bootloader-collection)))) (profile (content (packages->manifest (list bootloader-package))) (name "bootloader-profile") (hooks (append (list bootloader-collection) hooks)) (locales? #f) (allow-collisions? #f) (relative-symlinks? #f))) (define* (efi-bootloader-chain files final-bootloader #:key (hooks '()) installer) "Define a bootloader chain with FINAL-BOOTLOADER as the final bootloader and certain directories and files from the store given in the list of FILES. FILES may contain file like objects produced by functions like plain-file, local-file, etc., or package contents produced with file-append. They will be collected inside a directory collection/ inside a generated bootloader profile, which will be passed to the INSTALLER. If a directory name in FILES ends with '/', then the directory content instead of the directory itself will be symlinked into the collection/ directory. The procedures in the HOOKS list can be used to further modify the bootloader profile. It is possible to pass a single function instead of a list. If the INSTALLER argument is used, then this function will be called to install the bootloader. Otherwise the installer of the FINAL-BOOTLOADER will be called." (let* ((final-installer (or installer (bootloader-installer final-bootloader))) (profile (efi-bootloader-profile files (bootloader-package final-bootloader) (if (list? hooks) hooks (list hooks))))) (bootloader (inherit final-bootloader) (package profile) (installer #~(lambda (bootloader target mount-point) (#$final-installer bootloader target mount-point) (copy-recursively (string-append bootloader "/collection") (string-append mount-point target) #:follow-symlinks? #t #:log (%make-void-port "w")))))))