159 Commits

Author SHA1 Message Date
Philip Müller
b2dc7e628a
Update constants.rs
- use latest LTS kernel
2020-07-02 13:38:52 +02:00
James McMurray
3ca2e01f1f
Bump which to version 4 removing failure dependency (#55)
We are now completely free of failure dependencies!
2020-06-18 08:56:37 +03:00
Roey Darwish Dror
460752adfa Large boot partition (fix #50) 2020-06-18 05:48:31 +00:00
Roey Darwish Dror
b92219af41 Clear the root password 2020-06-18 05:47:01 +00:00
Roey Darwish Dror
b3449b6b3d Make clippy happy 2020-06-17 19:39:58 +00:00
James McMurray
c04b5f5559
Add amd-ucode to default packages (#52) 2020-05-31 08:39:13 +03:00
James McMurray
7152901820
Migrate ALMA to anyhow (#54) 2020-05-31 08:38:20 +03:00
James McMurray
c8b151fe5f
Add support for installing AUR packages (#48) 2020-05-10 19:31:40 +03:00
James McMurray
bc9969a0db
Add shared_directories preset parameter (#35) 2020-03-26 20:57:46 +02:00
James McMurray
14347710ce
Add linux package to defaults (#36)
Should fix mkinitcpio issues due to missing "linux" preset now it's no
longer included in "base".

Note this issue only affected newer Arch Linux installs (since the
change).
2020-03-21 20:38:25 +02:00
James McMurray
1f5b28c065
Recursively import presets from provided directory (#33)
Allow a directory to be passed as a preset, in which case all files
inside the directory (recursively) are treated as presets, loaded in
lexicographical order.

This allows one to compose a system by mixing in different presets, and
easily change their order of execution.
2020-03-21 07:16:15 +02:00
Roey Darwish Dror
6624f05d1e
Merge pull request #29 from jamesmcm/refactor 2020-03-14 20:54:37 +02:00
James McMurray
490ab30f4c Refactor main.rs and fix clippy lints
Status: WIP

Completed:
* Fixed flagged clippy lints
* Moved qemu(), main.rs::mount() and chroot() to the tools module.
* Moved constants in main.rs to constants.rs (including base packages
  array)
* Renamed Presets struct to PresetsCollection to avoid confusion with
  Preset struct
* Moved main() to the top of main.rs to highlight general logic path
* Added comments and docstrings to some functions
* Removed some uses of `use foo::*` to make the source of imported functions
  and structs clearer

TODO:
* Move remaining code in main.rs to modules (except main())
* Break up create() function in to separate steps
* Log every command run (with arguments) to debug! when verbose flag is used
* Add docstrings for remaining functions and document constants (e.g.
  why noatime is used)
* Remove remaining uses of `use foo::*`
* Consider renaming/moving tools module to address tool:: vs. Tool::
  confusion
2020-03-06 23:11:56 +01:00
Roey Darwish Dror
19eef3a0e1
Merge pull request #28 from jamesmcm/expand_readme
Add more comprehensive examples to README.md
2020-03-06 06:36:20 +02:00
James McMurray
1de58314e4 Add more comprehensive examples to README.md 2020-03-05 22:38:18 +01:00
Roey Darwish Dror
7c88f4527d Dependencies bump and compilation fixes 2020-03-01 21:25:26 +02:00
Roey Darwish Dror
11c5b04677 Version bump v0.10.0 2019-08-13 21:44:33 +03:00
Roey Darwish Dror
750653c222 Add a flag for non-removable devices (fix #24) 2019-08-13 21:43:55 +03:00
Roey Darwish Dror
25cdc44c7c Dependencies bump 2019-08-13 21:21:23 +03:00
Roey Darwish Dror
34020614e1 Enable KVM only if available 2019-08-11 15:46:19 +03:00
Roey Darwish Dror
4e12052f5a Fix the azure pipeline v0.9.0 2019-08-01 15:34:30 +03:00
Roey Darwish Dror
6fc15b7c40 Version bump 2019-08-01 15:10:44 +03:00
Roey Darwish Dror
a98e22e674 Bump dependencies 2019-08-01 15:10:23 +03:00
Roey Darwish Dror
156c4d35e6 Ask the user to exit with exit 2019-08-01 13:45:52 +03:00
Roey Darwish Dror
bf7d882de0 Use dialoguer for device selection 2019-08-01 13:27:33 +03:00
Roey Darwish Dror
f4a5b96085 No need to build the docker file with musl 2019-08-01 13:19:38 +03:00
Roey Darwish Dror
7007706b67 Add the overwrite flag 2019-08-01 13:19:31 +03:00
Roey Darwish Dror
2c11c9b251 More debug logs 2019-08-01 11:28:20 +03:00
Roey Darwish Dror
4ea5807a5a Make Clippy happy 2019-08-01 11:03:54 +03:00
Roey Darwish Dror
a56ed3752b Build the docker image in Azure 2019-08-01 09:20:50 +03:00
Roey Darwish Dror
ed980a3d76 Add Dockerfile 2019-07-25 09:44:33 +03:00
Roey Darwish Dror
182a7a6008 Bump version v0.8.0 2019-07-03 13:32:26 +03:00
Roey Darwish Dror
f1c30e36ea Simple log 2019-07-03 13:32:02 +03:00
Roey Darwish Dror
099c796c2c New README 2019-06-22 20:13:54 +03:00
Roey Darwish Dror
77a934d4e6 Bump dependencies 2019-06-20 22:22:25 +03:00
Roey Darwish Dror
e339b722df Don't set the crypt hook when unnecessary (fix #20) 2019-06-20 22:20:36 +03:00
Roey Darwish Dror
4b7547a57e Interactive device selection 2019-06-20 20:51:08 +03:00
Roey Darwish Dror
4f7b834ce3 Implement auto detection of encrypted root devices (fix #21) 2019-06-18 22:53:57 +03:00
Roey Darwish Dror
8551a815c4 Display the entire error chain 2019-06-18 22:23:26 +03:00
Roey Darwish Dror
e25228e5a1 Update azure-pipelines.yml for Azure Pipelines 2019-06-18 20:14:53 +03:00
Roey Darwish Dror
5cf6a8fdd0 Set up CI with Azure Pipelines
[skip ci]
2019-06-18 20:13:21 +03:00
Roey Darwish Dror
8c736775b0 Version 0.7.0 v0.7.0 2019-06-18 12:54:42 +03:00
Roey Darwish Dror
92f5bdfeab Support chroot images 2019-06-17 20:56:26 +03:00
Roey Darwish Dror
eddecf8c6b Update lock file 2019-06-17 20:35:00 +03:00
Roey Darwish Dror
d4cdd187a0 Loop device support 2019-06-17 20:34:34 +03:00
Roey Darwish Dror
379f11af42 Add some example presets 2019-06-06 13:28:29 +03:00
Roey Darwish Dror
7dcff2a019 Add the "environment" key to presets 2019-06-06 13:28:15 +03:00
Roey Darwish Dror
ffbd34e14f Add presets support 2019-06-05 10:05:59 +03:00
Roey Darwish Dror
91215703bf Add qemu command 2019-06-02 14:31:19 +03:00
Roey Darwish Dror
7f6a0c0a0f Fix broken encryption 2019-05-29 15:03:35 +03:00