Commit Graph

104 Commits

Author SHA1 Message Date
Carlos Prado b2ea9b360d
feat: hooks (#70)
* Hooks

Hook system to allow further customization at specific steps of the installation process.

- before/after_prepare_environment
- before/after_disk_configuration
- before/after_download_stage3
- before/after_extract_stage3

- before/after_install
- before/after_configure_base_system
- before/after_configure_portage
- before/after_install_kernel

* add hook examples

* fix: remove eval
2023-01-07 14:02:15 +01:00
Mathieu Gouttenoire 2036d785f1 Fix stage3 download on other architectures 2022-12-22 15:01:56 +01:00
oddlama 2397569412
chore: adhere to shellcheck rules 2022-10-05 15:49:37 +02:00
oddlama 6c1a7e846b
fix: disable swap after creating to prevent some live environments from using the swap immediately (fixes #57) 2022-10-05 15:47:48 +02:00
oddlama 8919c61568
chore: clean ouput and add comments to installed scripts 2022-10-05 15:44:52 +02:00
Min Xu 3888a552fa
fix: Wait for device symlink after partitioning (#56)
Co-authored-by: Min Xu <min.xu.public@gmail.com>
2022-10-05 15:32:02 +02:00
oddlama b78dea2dc7
fix: make all rbound mountpoints also rslaves. 2022-07-01 19:54:26 +02:00
oddlama b3324498fb
feat: generate ssh keys before generating initramfs in case sshd needs them 2022-07-01 14:10:38 +02:00
oddlama a97fcaabc8
feat: mount /run to suppress warnings (closes #44) 2022-06-30 21:22:57 +02:00
oddlama 0350ada8c3
fix: ZFS compression was not properly enabled on the rpool dataset 2022-06-29 02:15:32 +02:00
oddlama 3c8391789d
fix: remove invalid variable in check for rhash availability 2022-05-14 00:51:28 +02:00
oddlama 38bf1de80c
chore: improve wanted program check (remove array indirection) 2022-05-14 00:48:42 +02:00
oddlama 64218c9a5c
feat: fallback to sha512sum if rhash is not available. closes #36. 2022-05-14 00:29:50 +02:00
oddlama 4949293ac1
fix: track whether partitioning is disallowed 2022-05-13 21:32:24 +02:00
oddlama 1dbb0b29d6
feat: add warning message to ensure users have freed devices before partitioning. Closes #22. 2022-05-13 21:28:23 +02:00
oddlama 2003738dca
feat: show added existing disks in action summary 2022-05-13 21:15:09 +02:00
oddlama 547ca2e35d
fix: adjust DIGESTS verification for changed gentoo signature format 2022-05-12 23:24:40 +02:00
oddlama 02db85b545
chore: update DIGEST process to reflect upstream name changes 2022-02-28 17:38:04 +01:00
oddlama 1a920427a6
fix: test for DISK_ID_EFI and DISK_ID_BIOS variable existence before expansion (fixes #15) 2021-10-27 13:07:55 +02:00
oddlama 45719149ae
fix: adapt rhash verify to process digest files with absolute paths 2021-10-27 13:06:34 +02:00
oddlama ab96831953
Use try with ntpd so one can skip time syncing. 2021-06-06 19:12:00 +02:00
oddlama 93bc667f91
Missing default for zfs_stdin added 2021-06-02 17:33:27 +02:00
oddlama a25a696ced
Don't access GENTOO_INSTALL_ENCRYPTION_KEY when not using zfs encryption. 2021-06-02 17:25:09 +02:00
oddlama 953f5009e9
Check stage3 basename for systemd compliance 2021-06-02 16:38:47 +02:00
oddlama 264f811e9d
Added zfs compression settings to the standard pool creation function. Closes #10. 2021-06-02 16:18:31 +02:00
oddlama 6f25eae015
Use wipefs before creating partitions or formatting 2021-06-01 02:50:08 +02:00
oddlama ed602bf3e7
Break after pw ok 2021-05-31 20:21:41 +02:00
oddlama 303087aeaf
Fix reading encryption keys beginning with whitespace 2021-05-31 20:15:33 +02:00
oddlama b110b4e5dd
Visual linebreak after reading password 2021-05-31 17:27:13 +02:00
oddlama 7c9d001a20
Fix reverse condition in check_encryption_key 2021-05-31 17:25:08 +02:00
oddlama 0f0463ac15
First load disk_configuration then check for encryption key 2021-05-31 17:23:55 +02:00
oddlama 68a128153c
Read encryption key when starting installation if not given otherwise;
Clarify readme
2021-05-31 17:12:19 +02:00
oddlama 5c1d81d650
Exec chroot 2021-05-30 22:52:28 +02:00
oddlama 4d276dbc6c
Don't add fstab entry for zfs 2021-05-30 22:39:41 +02:00
oddlama 86e4a32fd0
Remove exec from chroot to allow post-chroot unmount 2021-05-30 03:15:06 +02:00
oddlama 45636bb82d
Allow "false" value for chroot check to mean not in chroot 2021-05-30 03:03:04 +02:00
oddlama ba60924bbc
Fix unset variable access when checking chroot 2021-05-30 03:00:29 +02:00
oddlama 4fac67ebdb
Use correct zfs mountpoint 2021-05-30 02:56:53 +02:00
oddlama 5288f58b72
Remove mountpoint from rpool/ROOT 2021-05-30 02:51:51 +02:00
oddlama 6f702f578f
Forgot line escape 2021-05-30 02:46:07 +02:00
oddlama c6d037f95f
Create rpool/ROOT dataset automatically, and supply password
automatically.
2021-05-30 02:44:26 +02:00
oddlama bae9e41741
Default for disk_action_summarize_only 2021-05-30 02:37:18 +02:00
oddlama a20e50f117
Use ntp package instead of openntpd on arch; Fix set -u in dynamic case labels 2021-05-30 02:33:45 +02:00
oddlama f03f4a99ab
add program check debug 2021-05-29 22:23:18 +02:00
oddlama a6023eba13
Apply disk configuration function in installer 2021-05-29 22:18:39 +02:00
oddlama 401e427b8e
Ask to install missing programs 2021-05-29 22:14:46 +02:00
oddlama a5cfe872a3
Added zfs pool creation 2021-05-27 20:35:28 +02:00
oddlama d229d5bdea
Set LANG on systemd profile 2021-05-02 15:35:20 +02:00
oddlama 6daa319c17
Use encryption key from environment variable; Adjust default ssh config; Remove ansible integration in favor of neutral installation 2021-05-02 15:29:56 +02:00
oddlama 09b920d6d4
Add some unnecessary checks to satisfy shellcheck 2021-04-28 16:06:52 +02:00