74 Commits

Author SHA1 Message Date
Philip Mueller
979d30162f [src] update initcpio
- count in plymouth
2023-06-23 19:05:40 +02:00
Philip Mueller
b3629c3120 [aur] set '--answerdiff=None' for yay 2023-06-23 14:05:16 +02:00
Philip Mueller
fb3808335e [code] try to make clippy happy 2023-06-22 22:59:04 +02:00
Roey Darwish Dror
3f89061369 Add a command line flag to specify the boot partition size (fix #79) 2023-06-22 22:35:17 +02:00
EdJoPaTo
dc127ed87a Fix Clippy lints & GitHub Action improvements (#74)
* ci: improve

- run on all branches to test things
- no cargo color, it destroys actions-rs/cargo features
- update versions

* refactor(lint): fix clippy issues

* refactor(lint): fix more clippy issues
2023-06-22 22:35:17 +02:00
Hans Gaiser
a6984b0b84 Add pacman_conf argument for alma create. (#68) 2023-06-22 22:35:17 +02:00
Roey Darwish Dror
f594fc2ffc Enable secure boot (fix #44) (#65) 2023-06-22 22:35:17 +02:00
Roey Darwish Dror
38d0085ba1 AUR fixes
The commit switches to using yay-bin instead of yay, avoiding the need to install Go.
In addition, it fixes a bug where aur packages
aren't build when specified only in the command line
2023-06-22 22:35:17 +02:00
James McMurray
7bba0c8c5a Move locale generation before user scripts (#59)
So user scripts can change locale if they wish
2023-06-22 22:33:26 +02:00
James McMurray
38e2cfbf5b Cache go when installing yay (#57)
Added common issues to README.md
2023-06-22 22:33:26 +02:00
Philip Müller
922f9cccfe
Update main.rs
- use mkinitcpio -P to have options to use more than one kernel.
2020-07-02 13:40:30 +02: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
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
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
7c88f4527d Dependencies bump and compilation fixes 2020-03-01 21:25:26 +02: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
34020614e1 Enable KVM only if available 2019-08-11 15:46:19 +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
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
f1c30e36ea Simple log 2019-07-03 13:32:02 +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
92f5bdfeab Support chroot images 2019-06-17 20:56:26 +03:00
Roey Darwish Dror
d4cdd187a0 Loop device support 2019-06-17 20:34:34 +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
Roey Darwish Dror
10faad551b Move the command line arguments to a module 2019-05-29 14:39:29 +03:00
Roey Darwish Dror
ec1f74b05d Use constants for partition indexes 2019-05-29 14:05:17 +03:00
Roey Darwish Dror
bb7567e72b Uber refactoring 2019-05-29 13:59:49 +03:00
Roey Darwish Dror
1182c96a08 Fix MacBook booting 2019-05-29 09:54:18 +03:00
Roey Darwish Dror
0492847d51 Generate locale (fix #19) 2019-05-27 14:15:40 +03:00
Roey Darwish Dror
7b235aa9bc Optionally run a command for chroot 2018-12-30 14:18:55 +02:00
Roey Darwish Dror
fbd8d0227c Rust 2018 2018-12-09 10:35:06 +02:00
Roey Darwish Dror
5f30a38b4a Add debug log 2018-12-02 16:51:08 +02:00
Roey Darwish Dror
35ffccc352 Use Ext4 instead of btrfs 2018-12-02 16:50:13 +02:00
Roey Darwish Dror
8c41b390a3 Encryption (fix #3) 2018-12-02 16:44:26 +02:00
Roey Darwish Dror
d672cf5663 Avoid needless consumption 2018-11-26 13:46:57 +02:00
Roey Darwish Dror
7b81e6b3cf Filter out local swap files from fstab (fix #17) 2018-11-26 11:56:57 +02:00
Roey Darwish Dror
c65004d570 Move the mount to its own module 2018-11-22 21:37:12 +02:00
Roey Darwish Dror
112be5157e Use smaller EFI partition 2018-11-22 21:16:05 +02:00