~ruther/guix-local

ref: e4cddbbcac752090585baed5b15e2eb4af713284 guix-local/guix/scripts d---------
e4cddbbc — Marius Bakke 8 years ago
Merge branch 'master' into staging
d6bf931c — Ludovic Courtès 8 years ago
pack: Use 'guile2.0-json' when building with Guile 2.0.

Fixes <http://bugs.gnu.org/27005>.
Reported by Pjotr Prins <pjotr.public12@thebird.nl>.

Fixes a regression introduced in commit
2252f087d4bd450ab41a71379320467887edfc0f.

* guix/scripts/pack.scm (docker-image)[json]: New variable.
[build]: Use it.
ffa5e0a6 — Ludovic Courtès 8 years ago
publish: Fix narinfo rendering for already-compressed items.

Fixes <http://bugs.gnu.org/26975>.
Reported by Mark H Weaver <mhw@netris.org>.

* guix/scripts/publish.scm (bake-narinfo+nar): Pass #f as the 2nd
argument to 'stat' and properly handle #f.
* tests/publish.scm (wait-for-file): New procedure.
("with cache"): Remove 'wait-for-file' procedure.
("with cache, uncompressed"): New test.
27c81fcb — Ludovic Courtès 8 years ago
lint: inputs-should-be-native: Add "cmake".

Suggested by Nicolas Goaziou <mail@nicolasgoaziou.fr>.

* guix/scripts/lint.scm (check-inputs-should-be-native)[input-names]:
Add "cmake".
5641dffb — Mathieu Othacehe 9 years ago
scripts: system: Display bootloader name in "list-generations".

* guix/scripts/system.scm (display-system-generation): Display
  bootloader name.
3241f7ff — Mathieu Othacehe 9 years ago
scripts: system: Adapt "switch-generation" to new bootloader API.

* guix/scripts/system.scm (reinstall-grub): Rename to
  reinstall-bootloader. Read boot-device and boot-type from parameters file to
  be able to restore the correct bootloader on specified device.
  Factorize bootloader installation code by calling install-bootloader.
 (system-bootloader-name): New procedure.
 (switch-to-system-generation): Adapt.
1229d328 — Mathieu Othacehe 9 years ago
scripts: system: Adapt "init" to new bootloader API.

* guix/scripts/system.scm (install): Pass installer a new
argument. Rename other arguments.
Call install-bootloader instead of install-grub*.
(perform-action): Adapt.
3042c5d8 — Mathieu Othacehe 9 years ago
scripts: system: Adapt "reconfigure" to new bootloader API.

* guix/scripts/system.scm (install-grub*): Rename to install-bootloader.  Use
keys to pass arguments.  Pass a new argument, "installer-drv" which is a script
in store dealing with bootloader-specific install actions.  Also call
"install-boot-config" to install the bootloader config file.

(install-bootloader-derivation): New procedure.  It returns a derivation that
builds a file containing "install-procedure" gexp.

(perform-action): Build install-proc derivation and call install-bootloader
with the resulting file.  Stop adding GRUB to PATH as bootloaders are called in
install-proc with direct store paths.
b09a8da4 — Mathieu Othacehe 8 years ago
bootloader: Add extlinux support.

* gnu/bootloader.scm: New file.
* gnu/bootloader/extlinux.scm: New file.
* gnu/bootloader/grub.scm: New file.
* gnu/local.mk: Build new files.
* gnu/system.scm: Adapt to new bootloader api.
* gnu/scripts/system.scm: Adapt to new bootloader api.
* gnu.scm: Remove (gnu system grub) and replace by (gnu bootloader) and (gnu
bootloader grub) modules.
* gnu/system/grub.scm: Moved content to gnu/bootloader/grub.scm.
* gnu/system/vm: Replace (gnu system grub) module by (gnu bootloader).
* gnu/tests.scm: Ditto.
* gnu/tests/nfs.scm: Ditto.
61b1df6f — Marius Bakke 8 years ago
Merge branch 'master' into staging
5db5dff5 — Ludovic Courtès 8 years ago
substitute: Honor 'Cache-Control' on 404 responses.

* guix/scripts/substitute.scm (cached-narinfo): When VALUE is #f, use
the TTL that is read instead of %NARINFO-NEGATIVE-TTL.
(cached-narinfo-expiration-time): Likewise.
24b21720 — Ludovic Courtès 8 years ago
publish: Advertise a short TTL for "baking" 404s.

* guix/scripts/publish.scm (not-found): Add #:phrase and #:ttl
parameters and honor them.
* tests/publish.scm ("with cache"): Check the 'cache-control' header on
of the 404 response.
7fd952e0 — Ludovic Courtès 8 years ago
scripts: Warn about old distro.

Fixes <http://bugs.gnu.org/25852>.
Suggested by Mark H Weaver <mhw@netris.org>.

* guix/scripts.scm (%distro-age-warning): New variable.
(warn-about-old-distro): New procedure.
* guix/scripts/package.scm (process-actions): Call
'warn-about-old-distro'.
* guix/scripts/system.scm (process-action): Likewise.
402e98c5 — Ludovic Courtès 8 years ago
pull: Use 'with-store'.

* guix/scripts/pull.scm (guix-pull): Remove call to 'open-connection'.
Use 'with-store' instead.
4902d3c4 — Ludovic Courtès 8 years ago
pull: Honor the standard build options.

Reported by Niall Dooley <dooleyn@gmail.com>
in <https://lists.gnu.org/archive/html/help-guix/2017-05/msg00038.html>.

* guix/scripts/pull.scm (%options): Add --dry-run and all of
%STANDARD-BUILD-OPTIONS.
(show-help): Add call to 'show-build-options-help'.
(%default-options): Add 'system', 'substitutes?', 'graft?',
'max-silent-time', and 'verbosity'.
(guix-pull)[parse-options]: Remove.
Use 'parse-command-line' instead.  Honor --dry-run.
7e3f7acb — Danny Milosavljevic 9 years ago
scripts: Remove profile-grub-entries.

* guix/scripts/system.scm (profile-grub-entries): Delete variable.
bf8b0916 — Danny Milosavljevic 9 years ago
system: grub: Use boot-parameters instead of menu-entry where possible.

* gnu/system/grub.scm (boot-parameters->menu-entry): New variable.
(grub-configuration-file): Use boot-parameters
instead of menu-entry where possible.
* guix/scripts/system.scm (profile-boot-parameters): Update docstring.
(reinstall-grub): Use profile-boot-parameters.
(perform-action): Use profile-boot-parameters.
0315abe6 — Danny Milosavljevic 9 years ago
scripts: Make boot-parameters label include generation number and time.

* guix/scripts/system.scm (system->boot-parameters): Make label include
generation number and time.
9530e73b — Danny Milosavljevic 9 years ago
system: Introduce read-boot-parameters-file.

* gnu/system.scm (read-boot-parameters): Remove export.
(read-boot-parameters-file): New variable. Export it.
* guix/scripts/system.scm (profile-boot-parameters): Use
read-boot-parameters-file.
(profile-grub-entries): Use read-boot-parameters-file.
(reinstall-grub): Use read-boot-parameters-file.
(display-system-generation): Use read-boot-parameters-file.
74067fed — Tobias Geerinckx-Rice 9 years ago
environment: Correct typo.

* guix/scripts/environment.scm (create-environment): Fix typo.
Next