Commit Graph

160 Commits

Author SHA1 Message Date
Jörg Thalheim
95efb19b0b make printBuildLogs a local variable 2024-09-18 16:28:57 +02:00
Bryan Richter
c928f74206 Re-invert behavior of --no-substitute-on-destination
Accidentally inverted in 763732541f
2024-09-18 16:28:57 +02:00
Michael Hoang
6c03cc1cca nixos-anywhere: avoid ssh-ng:// with nix copy
Fixes #347

Co-Authored-By: mangoiv <mail@mangoiv.com>
2024-09-16 11:06:09 +00:00
Jörg Thalheim
4f2fdae6a7 make sure all arrays have always a value 2024-09-16 10:04:42 +00:00
Jörg Thalheim
4e18e86226 make sure all facts are set by get-facts 2024-09-16 10:04:42 +00:00
Jörg Thalheim
2d8325a518 make sure sshConnection is always set 2024-09-16 10:04:42 +00:00
Jörg Thalheim
b26f5fbb49 make sure flakeAttr is always defined 2024-09-16 10:04:42 +00:00
Jörg Thalheim
c6ff714f9b sshPrivateKeyFile should be always defined 2024-09-16 10:04:42 +00:00
Jörg Thalheim
31d64dc9eb phases should be always defined 2024-09-16 10:04:42 +00:00
Jörg Thalheim
768b761c37 better check if diskEncryptionKeys is empty in vm-test 2024-09-16 10:04:42 +00:00
Jörg Thalheim
fa53e7763c make sure flake is always defined 2024-09-16 10:04:42 +00:00
Jörg Thalheim
e1616654ce only enable envPassword if it is actually set 2024-09-16 10:04:42 +00:00
Jörg Thalheim
763732541f remove global substituteOnDestination flag 2024-09-16 10:04:42 +00:00
Jörg Thalheim
b446e23537 make ssh host optional again in vm-test 2024-09-16 10:04:42 +00:00
Jörg Thalheim
9f49c61197 make sure extraFiles is always defined 2024-09-16 10:04:42 +00:00
Jörg Thalheim
af2d9d0fd2 make sure nixosSystem is always defined 2024-09-16 08:39:14 +00:00
Jörg Thalheim
ac9d12ff83 make sure diskoScript is always defined 2024-09-16 08:39:14 +00:00
Jean-François Roche
b3b6bfebba Fix sshKeyDir unbound variable
This closes #376
2024-09-12 01:15:54 +02:00
Jörg Thalheim
55b239c136 introduce a parseArgs function 2024-09-10 06:49:11 +00:00
Jörg Thalheim
8efdf0c7f0 fix more instances of snake_case 2024-09-10 06:49:11 +00:00
Jörg Thalheim
8582ed6cf6 fix misspelled variables 2024-09-10 06:49:11 +00:00
Jörg Thalheim
c12811b252 move more code into main function 2024-09-10 06:49:11 +00:00
Jörg Thalheim
1c048c75cd simplify logic around flake 2024-09-10 06:49:11 +00:00
Jörg Thalheim
d1d2605162 make sure envPassword is always defined 2024-09-10 06:49:11 +00:00
Jörg Thalheim
c60bbcf690 move more code into sshCopyIdArgs function 2024-09-10 06:49:11 +00:00
Jörg Thalheim
7cff10efea ssh keys provided via cli override env variables
this is more intuitive.
2024-09-10 06:49:11 +00:00
Jörg Thalheim
7125e7362e add a main function 2024-09-10 06:49:11 +00:00
Jörg Thalheim
9fb92e0d04 factor out a runVmTest function 2024-09-10 06:49:11 +00:00
Jörg Thalheim
bc77bd1cca use early return in runKexec 2024-09-10 06:49:11 +00:00
Jörg Thalheim
ef708ac46d use camel case for all variables 2024-09-09 16:30:51 +00:00
Jörg Thalheim
e4f8ad7609 use camel case for all functions 2024-09-09 16:30:51 +00:00
Jörg Thalheim
efe8740b73 move more code to functions 2024-09-09 16:30:51 +00:00
Jörg Thalheim
105d26abdf remove unused pubkey 2024-09-09 16:30:51 +00:00
Jörg Thalheim
c92ddabd3b move reboot back into install phase
this is dirty but for unknown reason the previous version would make the
machine fail booting.
2024-09-09 16:30:51 +00:00
Jörg Thalheim
0f6332037a allow to disable/enable phases in nixos-anywhere
Instead of having flags like --no-reboot or --stop-after-disko, we now
can specify all phases to run.
2024-09-09 16:30:51 +00:00
Jörg Thalheim
e885f1052a
Merge pull request #354 from dasJ/feat/id-like
get-facts: Make os-release parser more generic
2024-09-09 15:40:27 +02:00
Scott Edlund
9584f86e52 docs: correct SSHPASS variable and improve clarity 2024-08-25 18:21:36 +00:00
Janne Heß
eb6acb40ee
get-facts: Make os-release parser more generic
This adds support for quoted values (which are allowed by the file
format) and also for `ID_LIKE` for systems that fork NixOS.
2024-08-05 13:20:53 +02:00
Jeremy Schlatter
daf19effba fix incorrect user explanation
See previous commit:

    099790802d print the various steps
2024-07-14 03:04:42 +00:00
fin444
c20787adb1 don't attempt to export zpool if there is none 2024-06-30 13:57:22 +00:00
Johannes Bornhold
f964678caa Add new parameter "--kexec-extra-flags"
This allows to pass in special flags like "--no-sync" into the call to "kexec".
2024-06-10 11:52:22 +00:00
Jörg Thalheim
4079e0de1c add gnutar as dependency 2024-06-07 14:23:04 +00:00
Jörg Thalheim
574bacb9ba bump version t0 1.3.0 2024-06-07 15:24:06 +02:00
Jörg Thalheim
f931e0db1f update default nixos kexec image to 24.05 2024-06-07 13:12:36 +00:00
Sizhe Zhao
09f1f8306b
fix(src/nixos-anywhere): make root own copied files 2024-05-27 10:43:10 +08:00
Sizhe Zhao
5770dd84d2
fix(src/nixos-anywhere): extra-files expects a path 2024-05-27 10:42:04 +08:00
Sizhe Zhao
131a6e3ec0 feat(src): remove rsync from runtimeDeps 2024-05-26 09:13:58 +00:00
Sizhe Zhao
62e554d177 feat(src/nixos-anywhere): don't use rsync 2024-05-26 09:13:58 +00:00
fidgetingbits
3f975977d9 Don't fail if .ssh/authorized_keys is missing 2024-05-26 08:47:21 +00:00
Acid Bong
2f5b494e19
src/get-facts.sh: remove the bashism 2024-05-07 20:26:26 +03:00