Josselin Poiret
bc65f83184
installer: Use system-wide guix for system init.
...
* gnu/installer.scm (installer-program): Remove dependency on the guix
package for the PATH.
* gnu/installer/final.scm (install-system): Set PATH inside container
to /run/current-system/profile/bin/.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 12:07:08 +01:00
Josselin Poiret
1e2f0cca1a
installer: Make dump archive creation optional and selective.
...
* gnu/installer.scm (installer-program): Let the installer customize
the dump archive.
* gnu/installer/dump.scm (prepare-dump, make-dump): Split make-dump in
prepare-dump, which copies the files necessary for the dump, and
make-dump which creates the archive.
* gnu/installer/record.scm (installer): Add report-page field. Change
documented return value of exit-error.
* gnu/installer/newt.scm (exit-error): Change arguments to be a string
containing the error. Let the user choose between exiting and
initiating a dump.
(report-page): Add new variable.
* gnu/installer/newt/page.scm (run-dump-page): New variable.
* gnu/installer/newt/dump.scm: Delete it.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 11:01:46 +01:00
Josselin Poiret
237a0e61e2
installer: Turn passwords into opaque records.
...
* gnu/installer/user.scm (<secret>, secret?, make-secret,
secret-content): Add opaque <secret> record that boxes its contents,
with a custom printer that doesn't display anything.
* gnu/installer/newt/user.scm (run-user-add-page, run-user-page): Box
it.
* gnu/installer/final.scm (create-user-database): Unbox it.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:49:22 +01:00
Josselin Poiret
16b2bd9d04
installer: Use dynamic-wind to setup installer.
...
* gnu/installer.scm (installer-program): Use dynamic-wind, so that
completely uncaught exceptions can be printed properly.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:48:21 +01:00
Josselin Poiret
98d23fd53a
installer: Add error page when running external commands.
...
* gnu/installer/newt.scm (newt-run-command): Add it.
* gnu/installer/newt/page.scm (%ok-button, %exit-button,
%default-buttons, make-newt-buttons, run-textbox-page): Add them.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:44:40 +01:00
Josselin Poiret
6ae25c00f6
installer: Use named prompt to abort or break installer steps.
...
* gnu/installer/steps.scm (run-installer-steps): Set up
'installer-step prompt.
* gnu/installer/newt/ethernet.scm (run-ethernet-page)
* gnu/installer/newt/final.scm (run-config-display-page,
run-install-failed-page)
* gnu/installer/newt/keymap.scm (run-layout-page, run-variant-page)
* gnu/installer/newt/locale.scm (run-language-page,
run-territory-page, run-codeset-page, run-modifier-page,
run-locale-page)
* gnu/installer/newt/network.scm (run-technology-page,
wait-service-online)
* gnu/installer/newt/page.scm (run-listbox-selection-page,
run-checkbox-tree-page)
* gnu/installer/newt/partition.scm (button-exit-action)
* gnu/installer/newt/services.scm (run-desktop-environments-cbt-page,
run-networking-cbt-page, run-other-services-cbt-page,
run-network-management-page)
* gnu/installer/newt/timezone.scm (run-timezone-page)
* gnu/installer/newt/user.scm (run-user-page)
* gnu/installer/newt/welcome.scm (run-menu-page)
* gnu/installer/newt/wifi.scm (run-wifi-page): Use the 'installer-step
prompt to abort.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:44:40 +01:00
Josselin Poiret
4424ba7498
installer: Add nano to PATH.
...
* gnu/installer.scm (installer-program): Add nano to the installer
PATH.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:44:40 +01:00
Josselin Poiret
7e743738c7
installer: Replace run-command by invoke in newt/page.scm.
...
* gnu/installer/newt/page.scm (edit-file): Replace it.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:44:40 +01:00
Josselin Poiret
dd5177a377
installer: Fix run-file-textbox-page when edit-button is #f.
...
* gnu/installer/newt/page.scm (run-file-textbox-page): Check if
edit-button is #f.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:44:40 +01:00
Josselin Poiret
e91ddc728c
installer: Raise condition when mklabel fails.
...
* gnu/installer/parted.scm (mklabel): Do it.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:44:40 +01:00
Josselin Poiret
a7052e84ed
installer: Use run-command-in-installer in (gnu installer parted).
...
* gnu/installer/parted.scm (remove-logical-devices,
create-btrfs-file-system, create-ext4-file-system,
create-fat16-file-system, create-fat32-file-system,
create-jfs-file-system, create-ntfs-file-system,
create-xfs-file-system, create-swap-partition, luks-format-and-open,
luks-close): Use run-command-in-installer.
(with-null-output-ports): Remove.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:44:40 +01:00
Josselin Poiret
917e94b29f
installer: Add installer-specific run command process.
...
* gnu/installer/record.scm (installer)[run-command]: Add field.
* gnu/installer/utils.scm (run-command-in-installer): Add parameter.
* gnu/installer.scm (installer-program): Parameterize
run-command-in-installer with current installer's run-command.
* gnu/installer/newt.scm (newt-run-command): New variable.
(newt-installer): Use it.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:44:40 +01:00
Josselin Poiret
6494a5493a
installer: Capture external commands output.
...
* gnu/installer/utils.scm (run-external-command-with-handler,
run-external-command-with-line-hooks): New variables.
(run-command): Use run-external-command-with-line-hooks.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:44:39 +01:00
Josselin Poiret
d2d7fcf564
installer: Remove specific logging code.
...
* gnu/installer/final.scm (install-system): Remove command logging to
syslog, as this is taken care of by the new facilities.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:27:22 +01:00
Josselin Poiret
946420276f
installer: Keep PATH inside the install container.
...
* gnu/installer/final.scm (install-system): Set PATH inside the
container.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:27:22 +01:00
Josselin Poiret
8ee099abe0
installer: Un-export syslog syntax.
...
* gnu/installer/utils.scm (syslog): Remove export.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:27:22 +01:00
Josselin Poiret
750a0669eb
installer: Use new installer-log-line everywhere.
...
* gnu/installer.scm (installer-program)
* gnu/installer/final.scm (install-locale)
* gnu/installer/newt.scm (init)
* gnu/installer/newt/final.scm (run-final-page)
* gnu/installer/newt/page.scm (run-form-with-clients)
* gnu/installer/newt/partition.scm (run-partitioning-page)
* gnu/installer/parted.scm (eligible-devices, mkpart,
luks-format-and-open, luks-close, mount-user-partitions,
umount-user-partitions, free-parted):
* gnu/installer/steps.scm (run-installer-steps):
* gnu/installer/utils.scm (run-command, send-to-clients): Use it.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:27:22 +01:00
Josselin Poiret
ac014ddd33
installer: Generalize logging facility.
...
* gnu/installer/utils.scm (%syslog-line-hook, open-new-log-port,
installer-log-port, %installer-log-line-hook, %display-line-hook,
%default-installer-line-hooks, installer-log-line): Add new
variables.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:27:22 +01:00
Josselin Poiret
76c27a5792
installer: Use define instead of let at top-level.
...
* gnu/installer.scm (installer-program): Improve readability by using
define at top-level.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-01-17 08:27:22 +01:00
Mathieu Othacehe
84d0d8ad3d
installer: Add crash dump upload support.
...
Suggested-by: Josselin Poiret <dev@jpoiret.xyz>
* gnu/installer/dump.scm: New file.
* gnu/installer/newt/dump.scm: New file.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer/record.scm (<installer>)[dump-page]: New field.
* gnu/installer/steps.scm (%current-result): New variable.
(run-installer-steps): Update it.
* gnu/installer.scm (installer-program): Add tar and gip to the installer
path. Add guile-webutils and gnutls to the Guile extensions. Generate and send
the crash dump report.
* gnu/installer/newt.scm (exit-error): Add a report argument. Display the
report id.
(dump-page): New procedure.
(newt-installer): Update it.
2022-01-14 14:32:12 +01:00
Mathieu Othacehe
9d0d4b331d
system: locale: Use only the current glibc.
...
* gnu/system/locale.scm (%default-locale-libcs): Remove glibc-2.31.
2022-01-14 14:29:20 +01:00
Mathieu Othacehe
e92723452d
installer: Install the locale before mounting the cow-store.
...
Fixes: <https://issues.guix.gnu.org/52831 >.
Make sure to install the en_US.utf8 fallback locale if the selected locale is
not supported.
* gnu/installer/final.scm (install-locale): New procedure.
(install-system): Call it.
2022-01-14 14:29:19 +01:00
Mathieu Othacehe
0c9693d8b3
installer: Do not set the locale in run-command.
...
Installing the locale inside the container, once the cow-store is mounted,
causes the process to keep opened locale files that can later prevent the
cow-store umount.
* gnu/installer/utils.scm (run-command): Remove locale argument.
* gnu/installer/final.scm (install-system): Adapt it.
2022-01-14 14:29:15 +01:00
Mathieu Othacehe
7c923e6cf4
installer: Remove an unused procedure.
...
* gnu/installer/final.scm (kill-cow-users): Remove it.
2022-01-14 14:29:12 +01:00
Mathieu Othacehe
ee897e5f51
installer: Check if ci.guix.gnu.org can be reached.
...
* gnu/installer.scm (installer-program): Add gnutls extension.
* gnu/installer/newt/network.scm (wait-service-online): Check if the CI server
can be reached.
2022-01-14 14:29:08 +01:00
Mathieu Othacehe
c6910baf36
installer: Ignore small devices.
...
Filter the devices that are smaller than 2GiB in the device selection list.
* gnu/installer/parted.scm (%min-device-size): New variable.
(non-install-devices): Rename it ...
(eligible-devices): ... this way. Filter the install device as well as the
small devices.
* gnu/installer/newt/partition.scm (run-partitioning-page): Adapt it.
2022-01-14 14:29:08 +01:00
Nicolas Goaziou
5c5d9e5a32
gnu: telescope: Remove input labels.
...
* gnu/packages/web-browsers.scm (telescope)[native-inputs]: Remove input
labels.
2022-01-14 13:20:18 +01:00
cage
053ace770f
gnu: telescope: Update to 0.7.
...
* gnu/packages/web-browsers.scm (telescope): Update to 0.7.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2022-01-14 13:18:39 +01:00
Danny Milosavljevic
923dcc3597
gnu: iverilog: Update to 11.0.
...
* gnu/packages/fpga.scm (iverilog): Update to 11.0.
[arguments]: Add make-flags.
2022-01-14 12:59:33 +01:00
Mathieu Othacehe
0233583aa4
system: vm: Change the writable image name.
...
* gnu/system/vm.scm (system-qemu-image/shared-store-script): Change it.
2022-01-14 12:26:07 +01:00
Mathieu Othacehe
2d12ec724e
scripts: system: Rationalize persistency.
...
Make sure that the images are created with a non volatile root by default and
the vm are created with a volatile root by default. Break the --volatile
option into --volatile-image and --persistent-vm options.
* guix/scripts/system.scm (perform-action): Turn volatile? argument into
volatile-vm-root?.
(show-help): Introduce --volatile-image and --persistent-vm options instead of
--volatile.
(%default-options): Adapt it.
(%options): Handle those options.
(process-action): Honor them.
* doc/guix.texi (Invoking guix system): Adapt it accordingly.
2022-01-14 12:26:07 +01:00
jgart
3dbb7112d4
gnu: Add git-interactive-rebase-tool.
...
* gnu/packages/rust-apps.scm (git-interactive-rebase-tool): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2022-01-14 10:55:43 +01:00
jgart
4000e49892
gnu: Add rust-concat-idents-1.
...
* gnu/packages/crates-io.scm (rust-concat-idents-1): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2022-01-14 10:55:43 +01:00
jgart
cbb48e9875
gnu: Add rust-xi-unicode-0.3.
...
* gnu/packages/crates-io.scm (rust-xi-unicode-0.3): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2022-01-14 10:55:38 +01:00
jgart
c7c509c375
gnu: rust-syn-1: Update to 1.0.82.
...
* gnu/packages/crates-io.scm (rust-syn-1): Update to 1.0.82.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2022-01-14 10:55:07 +01:00
jgart
42a6e943e4
gnu: Add rust-rstest-0.6.
...
* gnu/packages/crates-io.scm (rust-rstest-0.6): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2022-01-14 10:54:08 +01:00
jgart
614ac9bb44
gnu: rust-proc-macro2-1: Update to 1.0.32.
...
* gnu/packages/crates-io.scm (rust-proc-macro2-1): Update to 1.0.32.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2022-01-14 10:53:15 +01:00
Efraim Flashner
22010dd48c
gnu: openssh: Add release-monitoring-url.
...
* gnu/packages/ssh.scm (openssh)[properties]: New field.
2022-01-14 11:41:24 +02:00
Efraim Flashner
15216a06fe
gnu: glibc-locales: Allow finding newer versions.
...
* gnu/packages/base.scm (glibc-locales)[properties]: New field.
2022-01-14 11:41:24 +02:00
Efraim Flashner
8a018533ba
gnu: aspell-dictionary: Try to find new releases.
...
* gnu/packages/aspell.scm (aspell-dictionary)[properties]: New field.
2022-01-14 11:41:24 +02:00
Efraim Flashner
29e697789f
gnu: newsboat: Update to 2.26.
...
* gnu/packages/syndication.scm (newsboat): Update to 2.26.
[cargo-inputs]: Remove rust-clap-2. Add rust-lexopt-0.2, rust-md5-0.7.
2022-01-14 11:41:24 +02:00
Efraim Flashner
7b48173f63
gnu: rust-xdg-2: Update to 2.4.0.
...
* gnu/packages/crates-io.scm (rust-xdg-2): Update to 2.4.0.
[cargo-inputs]: Add rust-dirs-3.
2022-01-14 11:41:23 +02:00
Efraim Flashner
c1d82f4aac
gnu: Add rust-lexopt-0.2.
...
* gnu/packages/crates-io.scm (rust-lexopt-0.2): New variable.
2022-01-14 11:41:23 +02:00
Efraim Flashner
24dbd44bdc
gnu: rust-fastrand-1: Update to 1.6.0.
...
* gnu/packages/crates-io.scm (rust-fastrand-1): Update to 1.6.0.
2022-01-14 11:41:23 +02:00
Efraim Flashner
ed1461fa18
gnu: parcimonie: Help find new releases.
...
* gnu/packages/gnupg.scm (parcimonie)[properties]: New field.
2022-01-14 11:41:22 +02:00
Efraim Flashner
19f41fb4de
gnu: parcimonie: Remove input labels.
...
* gnu/packages/gnupg.scm (parcimonie)[inputs]: Remove input labels.
[arguments]: Use search-input-file to find files.
2022-01-14 11:41:22 +02:00
Efraim Flashner
be6716a218
gnu: parcimonie: Update to 0.12.0.
...
* gnu/packages/gnupg.scm (parcimonie): Update to 0.12.0.
[inputs]: Remove perl-data, perl-exporter-tiny, perl-getopt-long-descriptive,
perl-libintl-perl, perl-lwp-online, perl-module-build,
perl-module-pluggable, perl-moox-handlesvia, perl-net-dbus-glib,
perl-strictures-2, perl-test-most, perl-test-trap,
perl-unicode-linebreak, perl-xml-parser, and perl-xml-twig; add
perl-json and perl-pango.
[native-inputs]: Add perl-file-which, perl-gnupg-interface,
perl-list-moreutils, perl-lwp-online, perl-module-build,
perl-strictures-2, perl-test-most, perl-test-trap.
[arguments]: Remove trailing #t from phases. Adjust custom
'prepare-for-tests phase.
[home-page]: Update to new home-page.
2022-01-14 11:41:22 +02:00
Efraim Flashner
dc64e7a1ac
gnu: aria2: Rewrite with gexps.
...
* gnu/packages/bittorrent.scm (aria2)[arguments]: Rewrite with gexps.
2022-01-14 11:41:22 +02:00
Efraim Flashner
161091f053
gnu: aria2: Update to 1.36.0.
...
* gnu/packages/bittorrent.scm (aria2): Update to 1.36.0.
2022-01-14 11:41:21 +02:00
Efraim Flashner
12bccb8e3b
gnu: aria2: Add release-monitoring-property.
...
* gnu/packages/bittorrent.scm (aria2)[properties]: New field.
2022-01-14 11:41:21 +02:00