Commit graph

24 commits

Author SHA1 Message Date
Jörg Thalheim
6b172212b6 disko-install: resolve symlinks in mount point path
Nix refuses to operate when the store path or its parent directories
contain symlinks. On some systems /mnt can be a symlink, causing
disko-install to fail with:

  error: the path '"/mnt"' is a symlink; this is not allowed for the
  Nix store and its parent directories

Use realpath to resolve symlinks before passing the mount point to
nix-store and nixos-install commands.
2025-12-19 13:25:02 +00:00
Jörg Thalheim
d377b56993 disko-install: resolve flake store path before using getFlake
otherwise operate on a path rather than the git flake
2025-11-04 17:23:16 +00:00
Jörg Thalheim
49c1bc1b34 disko-install: switch to xcp 2025-08-25 09:53:42 +00:00
Jörg Thalheim
df522e787f only use nom if we write to a terminal 2025-05-20 12:07:15 +00:00
Jörg Thalheim
22cd4b7e49 check for db.sqlite rather than /nix/store
since we initialize the database last, it's safe to use the database as
a sentinel path
2024-12-05 13:05:22 +01:00
Jörg Thalheim
fd3e326e9a disable swap in disko-install
Update disko-install

Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-11-22 12:45:57 +01:00
Jörg Thalheim
eb1bb9fe27 disko-install: allow to override mountpoints and don't manage them in dry-run 2024-11-21 14:11:02 +01:00
Jörg Thalheim
4cbd22d868 allow to run dry-run without using root 2024-11-21 12:30:14 +01:00
iFreilicht
89e458a3bb UX: be specific if disko-install failed or succeeded (#847)
UX: be specific if disko-install failed or succeeded

* Output success message to stdout

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2024-10-27 16:12:03 +00:00
Felix Uhl
9ab6ae4e63 disko-install: make output deterministic
Fixes #827
2024-10-15 16:36:09 +00:00
Jörg Thalheim
423b86a7f7 disko-install: don't copy channel
Since we use flakes, channels have no buisness.
This is consistent with nixos-anywhere.
2024-06-29 05:47:47 +00:00
Florian Klink
cb1d6fba69 disko-install: only set NIX_STATE_DIR for load-db
We don't need to keep this env var around for the xargs invocation, only when running `nix-store --load-db`.
2024-05-15 07:07:42 +00:00
Jörg Thalheim
718565dfbb drop dependency on xcp
It's actually not faster in combination with xargs...
2024-05-07 08:53:10 +02:00
Jörg Thalheim
cdefe26742 load database with checksum again but do the same in disko-install 2024-05-07 08:53:10 +02:00
Qubasa
2ec3549b6f Change --system-option KEY VAL to --system-config JSON
Update install-cli.nix
2024-04-29 14:57:02 +00:00
Qubasa
b3254b1038 Add --system-option flag. 2024-04-29 14:57:02 +00:00
Jörg Thalheim
fbbac1aee6 disko-install: document --mode flag more 2024-04-05 13:54:19 +00:00
Jörg Thalheim
a6717b1afe disko-install: check if it runs as root 2024-03-26 14:19:03 +00:00
Jörg Thalheim
fe064a6393 use nom-build if available
Nicer progress bars etc
2024-03-11 16:10:06 +01:00
Jörg Thalheim
a949edef70 accept relative paths for flakes in disko/disko-install
builtins.getFlake wants absolute paths
2024-03-11 16:10:06 +01:00
Jörg Thalheim
cf185d687f disko-install: improve error message if disk is not passed 2024-03-05 14:03:10 +00:00
Jörg Thalheim
0d11aa8d64 disko-install: add extra-files option 2024-03-05 09:52:34 +00:00
Jörg Thalheim
3704ee3926 add efi var install option 2024-03-05 09:45:10 +00:00
Jörg Thalheim
bde7dd352c add disko-install command
disko-install combines disko and nixos-install into a single command.

Example usage:

  sudo ./disko-install --flake /someflake#eva --disk sda /dev/zvol/zroot/test
2024-03-01 09:48:08 +00:00