;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 Nikita Karetnikov ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (test-base64) #:use-module (guix base64) #:use-module (rnrs bytevectors) #:use-module (srfi srfi-64)) (define (string->base64 str) (base64-encode (string->utf8 str))) ;;; Test vectors from . (test-begin "base64") (test-equal "empty string" (string->base64 "") "") (test-equal "f" (string->base64 "f") "Zg==") (test-equal "fo" (string->base64 "fo") "Zm8=") (test-equal "foo" (string->base64 "foo") "Zm9v") (test-equal "foob" (string->base64 "foob") "Zm9vYg==") (test-equal "fooba" (string->base64 "fooba") "Zm9vYmE=") (test-equal "foobar" (string->base64 "foobar") "Zm9vYmFy") (test-end "base64")'>commitdiff
AgeCommit message (Collapse)Author
2020-06-08bootloader: Extend `<menu-entry>' for multiboot.Jan (janneke) Nieuwenhuizen
* gnu/bootloader.scm (<menu-entry>)[multiboot-kernel,multiboot-arguments, multiboot-modules]: New fields. [linux,initrd]: Add default value '#f'. (menu-entry->sexp, sexp->menu-entry): Support multiboot entry. * doc/guix.texi (Bootloader Configuration): Document them.
2020-05-29bootloader: Add 'disk-image-installer'.Mathieu Othacehe
* gnu/bootloader.scm (<bootloader>)[disk-image-installer]: New field, (bootloader-disk-image-installer): export it. * gnu/bootloader/grub.scm (install-grub-disk-image): New procedure ... (grub-bootloader): ... used as "disk-image-installer" here. (grub-efi-bootloader): set "disk-image-installer" to #f. * gnu/system/image.scm (root-partition?, find-root-partition): Move to "Helpers" section. (root-partition-index): New procedure. (system-disk-image): Honor disk-image-installer, and use it to install the bootloader directly on the disk-image, if supported.
2019-08-30system: Add 'bootloader-menu-entries' field to <boot-parameters>.Ludovic Courtès
This allows us to keep track of the extra menu entries specified in the OS configuration. * gnu/system.scm (<boot-parameters>)[bootloader-menu-entries]: New field. (read-boot-parameters): Initialize it. (operating-system-boot-parameters): Likewise. (operating-system-boot-parameters-file): Serialize it. * gnu/bootloader.scm (menu-entry->sexp, sexp->menu-entry): New procedures.
2019-08-30bootloader: Fix comment about 'menu-entries'.Ludovic Courtès
* gnu/bootloader.scm (<bootloader-configuration>)[menu-entries]: Fix margin comment.
2019-03-24bootloader: Add a 'keyboard-layout' field.Ludovic Courtès
* gnu/bootloader/grub.scm (keyboard-layout-file): New procedure. (grub-configuration-file)[keyboard-layout-file]: New variable. [builder]: Use it. * gnu/bootloader.scm (<bootloader-configuration>)[keyboard-layout]: New field. * doc/guix.texi (Bootloader Configuration): Document it. Co-authored-by: nee <nee-git@hidamari.blue>
2019-03-24bootloader: Reindent record type definition.Ludovic Courtès
* gnu/bootloader.scm (<bootloader-configuration>): Reindent.
2019-03-24bootloader: Remove unused 'additional-configuration' field.Ludovic Courtès
* gnu/bootloader.scm (<bootloader-configuration>)[additional-configuration]: Remove.