Commit Graph

93 Commits

Author SHA1 Message Date
Anton Hvornum 1e35a8b096 live testing 2019-04-11 22:13:09 +02:00
Anton Hvornum efc7f0cc48 Handling login during pseudo-boot 2019-04-11 22:06:22 +02:00
Anton Hvornum 53c95fc1b8 Trying something else 2019-04-11 21:57:53 +02:00
Anton Hvornum 4c37e916f8 Writing needs to be bytes 2019-04-11 21:51:48 +02:00
Anton Hvornum cc91766161 Increased read buffer from 1024 to 8192. Also added the command as a trigger 2019-04-11 21:46:14 +02:00
Anton Hvornum 69de48da7d Swapped for simple_command on multiple pipe command.. it's to messy heh 2019-04-11 21:37:50 +02:00
Anton Hvornum 47feba166e Almost there 2019-04-11 21:33:34 +02:00
Anton Hvornum fdf01f0cf6 Skipping re-exec for when git repo is already up to date 2019-04-11 21:26:43 +02:00
Anton Hvornum dd0f2f9d56 Forgot that iterators don't actually do anything unless you **try** to work with the output result. Optimizations ftw 2019-04-11 21:24:45 +02:00
Anton Hvornum 5b44456a55 Editing more outputs 2019-04-11 21:18:16 +02:00
Anton Hvornum 80d7fca43d Fixed a output message 2019-04-11 21:15:17 +02:00
Anton Hvornum 3fb42df162 Forgot to place the output some where.. oh i know.. in output... 2019-04-11 21:13:25 +02:00
Anton Hvornum 687685809a Error when removing a non-existing file.. duh.. 2019-04-11 21:12:59 +02:00
Anton Hvornum 15cdae12cc erm, echo was removed.. since it's part of the opts now 2019-04-11 21:11:57 +02:00
Anton Hvornum 2d4ae27454 Added back a simple_command() where path changes and stuff had to be done. For now.. this surely must work by doing os.chdir() or something 2019-04-11 21:11:20 +02:00
Anton Hvornum f11d93e255 More git update experiments 2019-04-11 21:05:36 +02:00
Anton Hvornum c33d382220 More status output 2019-04-11 20:50:17 +02:00
Anton Hvornum ef489a0cb5 Improving on the git update 2019-04-11 20:45:52 +02:00
Anton Hvornum 416971160e Doing live tests 2019-04-11 20:40:26 +02:00
Anton Hvornum e932d6fe88 Trying to fix auto-git-update 2019-04-11 20:31:32 +02:00
Anton Hvornum 3863691b49 Forgot to decode the bytes data 2019-04-11 20:07:32 +02:00
Anton Hvornum 6e3e94d284 Failed to convert one more iterator 2019-04-11 19:52:50 +02:00
Anton Hvornum 58b9442569 Missed another join() 2019-04-11 19:44:02 +02:00
Anton Hvornum 47e788c557 Forgot to .exec() 2019-04-11 19:36:43 +02:00
Anton Hvornum 72b04d9291 Forgot to join the iterator in some places 2019-04-11 19:30:07 +02:00
Anton Hvornum 1f89be3a23 Swapping the run() command for something a little more potent 2019-04-11 19:20:44 +02:00
Anton Hvornum 317ed640f0 Forgot to send the options as actual options. 2019-04-10 18:21:08 +02:00
Anton Hvornum 434603a008 Forgot to send the options as actual options. 2019-04-10 18:18:47 +02:00
Anton Hvornum 1726a597aa Testing a thing 2019-04-10 18:17:16 +02:00
Anton Hvornum 64f5dd30bb Reorder of when password is set. And added a boot options to boot into the new OS without actually rebooting. To set up things like databases etc that needs services running 2019-04-10 16:30:50 +02:00
Anton Hvornum 4b7cabeab4 Added support to boot a installation 2019-04-10 16:10:21 +02:00
Anton Hvornum 7d06fef7e9 Changed some formatting and status output. Also added manual chroot-setup. It's highly unreliable tho 2019-04-10 12:46:53 +02:00
Anton Hvornum 73fd441734 Wrapping is not systemd-nspawn's coup of tea 2019-04-10 11:01:18 +02:00
Anton Hvornum 2037b6c0c1 Added psutil workaround in case it's not installed. 2019-04-10 10:56:04 +02:00
Anton Hvornum fe9dfc4ffd Added no-chroot option to commands, so that they can run outside in the live-cd environment. Mainly to fix a temporary issue with systemd-nspawn where I don't know how to redirect stdout etc using the command 2019-04-10 10:46:14 +02:00
Anton Hvornum 6b785a4b4e Forgot to wrap the commands 2019-04-10 09:07:24 +02:00
Anton Hvornum ee7dff7f84 Reworked according to the new data structure. Changing rooms still doesnt work. And some other things might not as well.. such as file uploads.. but meh, beta test time! Fix issue #10 2019-04-10 08:37:52 +02:00
Anton Hvornum 9c572a3204 Verified implementation for #6 and #7 2019-04-08 20:29:49 +02:00
Anton Hvornum bc0a61b3c6 Added yubikey support, changed according to issues #6 and #7 2019-04-08 19:12:53 +02:00
Anton Hvornum 0c27146f05
Fixed output success parsing
Some times cryptsetup added more info to the command line output.
2018-10-01 20:58:32 +02:00
Anton Hvornum 3ff1e2e6cd
Logical miss on if statement. 2018-06-06 17:15:04 +02:00
Lord Anton Hvornum 96b8669b0a Added two new features, --no-default parameter that halts the script instead of installing a default arch machine if no MAC-address profile was found for unattended installs. The second feature is the --profiles parameter that enables custom web-server paths when looking for profiles to deploy 2018-05-30 20:14:37 +02:00
Anton Hvornum 3f827eb56f
Debug: temporary output activation 2018-05-30 17:47:33 +02:00
Anton Hvornum 30010a418a
Merge branch 'master' into net-deploy 2018-05-24 20:30:14 +02:00
Lord Anton Hvornum 252af79e3d * New feature: deployment structure can now import/include other templates (Included templates will be installed first, since we'll assume those are baselines/requirements for slimmer deploy-structs)
* Deployment scripts strings now supports python string formatting, if parameter  or  is given as options to each command-line (TODO: Add as a global  parameter as well, and treat all strings as formatable)
* Added two templates: workstation + 00:11:22:33:44:55, a example of how to set up a workstation using a template and a custom addition. Also added a default template that is similar to the workstation but does everything in one template. They all use some awk magic to fix alt-tab in Awesome WM, it also creates a "desktop" environment and installs some useful tools and fixes the start menu in Awesome WM.
* Reordering mirrors is now a configurable option (Default turned off, to better suit offline environments)
* Disk/root password now configurable as either a fixed string, or ask for via STDIN (Syntax for now is: )
* deployment targets now a variable (todo: add a parameter/argument)
* SSL support (ignores certificate validation for now, I know this is bad, but until a parameter etc is in place, this has to be a nessecary evil for now)
* Cleaned up a lot of custom variables and baked them into  so it's easier to format strings based off information gathered along the way (such as partition names).
* Error handling: Mostly for missing dependencies and situations, such as not booted in UEFI environment
2018-05-24 20:09:51 +02:00
Anton Hvornum 51f7543b04
Fixed urllib in offline mode.
Apparently, urrlib throws different errors on the "same" issue. With ambiguous names at that.
2018-05-13 23:22:00 +02:00
Lord Anton Hvornum 0fbebe6207 Merge branch 'master' into net-deploy 2018-05-05 19:15:05 +02:00
Lord Anton Hvornum ba09d311a2 Fixed: nvme-drive support fixed. parted gives partition numbers, not the actual labels of devices. Hence, parted is scrapped and lsblk is used to determain partition names/labels instead. 2018-05-05 19:13:48 +02:00
Lord Anton Hvornum 53bee19a99 More debugging 2018-04-13 06:54:22 +02:00
Lord Anton Hvornum 81df161ffc Forgot to create the pdns user 2018-04-12 22:53:21 +02:00