Commit Graph

234 Commits

Author SHA1 Message Date
oddlama 9985bfa5f0
Fixed missing m in ANSI format string 2021-05-30 03:01:45 +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 d75128a0f1
Changed status symbol 2021-05-30 02:54:38 +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 05bd2f465c
Fixed case confusion 2021-05-30 02:30:02 +02:00
oddlama 80e4bcbf90
make pacman package mapping associative 2021-05-29 22:59:38 +02:00
oddlama 762c879497
Arch pacman package name remappings and zfs installation script 2021-05-29 22:56:32 +02:00
oddlama 1b7fc257e2
Fix program existence check 2021-05-29 22:26:39 +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 0b1f8b5c6c
Skip install question if every required program is installed 2021-05-29 22:16:05 +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
oddlama 9ebdbfe8a1
Prepare zfs functions (format is currently a dummy) 2021-04-28 14:56:38 +02:00
oddlama 525e7668d8
set -e is staight from hell. [[ $CONFIG_VAR == 1 ]] && do_smth is now
wrong, need for command && ret=$? || ret=$?. I'm out.
2021-04-26 23:48:30 +02:00
oddlama 5f7acc58c5
Begin cleaning disk definitions, finish all menu points except disk. 2021-04-23 01:33:46 +02:00
oddlama d446af1d6a
Begin partitioning scheme selector 2021-04-22 21:09:11 +02:00
oddlama 23a5d33790
Test dialog package 2021-04-20 22:18:55 +02:00
oddlama 920e0f7f55
scripts/config.sh -> gentoo.conf 2021-04-20 16:55:38 +02:00
oddlama a531945dbb
Use sane script locations and add help menu 2021-04-20 00:51:48 +02:00
oddlama a7225d68a5
Update readme wording 2021-04-19 20:33:47 +02:00
oddlama caf9051930
Fixed missing swap false check for single disk layouts 2020-12-01 15:07:20 +01:00
oddlama 8ff794567a
Wording 2020-11-26 13:48:11 +01:00
oddlama 5999211430
set ansible=false by default, most users won't need it. 2020-11-26 13:45:03 +01:00
oddlama 48db35cc76
Actually select keymap and timezone on systemd configurations. Fixes #4. 2020-11-26 13:29:47 +01:00
oddlama b7b3d9c529
Added mirrorselect switch and mirrorselect large file switch. Closes #3 2020-11-26 12:44:59 +01:00
oddlama 1e1cf038fd
Clarify disk formatting explanation 2020-11-25 15:56:46 +01:00
oddlama b54079b0b4
Move configs -> contrib to avoid confusion 2020-11-25 14:45:46 +01:00
oddlama edfd4e621d
Oopsie lol 2020-11-18 15:38:10 +01:00
oddlama 70d252584c
Fix 20-wired-dhcp.network permissions 2020-11-18 15:31:04 +01:00
oddlama fa94a29d63
Fix wrong parameter in config.sh 2020-11-18 14:24:21 +01:00
oddlama e30956abf4
Fix ext4 case 2020-11-18 14:23:35 +01:00
oddlama fbad0e2184 Add partprobe before blkid invocation, and use compress-force for btrfs fstab 2020-11-06 22:48:38 +01:00
oddlama 375825c1e8
Fix wrong partition types 2020-10-29 01:19:45 +01:00
oddlama 65e4ccd4a8
Add todo 2020-10-12 20:59:10 +02:00
oddlama 7db2c3c6f3
Add systemd networking config 2020-10-12 01:18:39 +02:00
oddlama a59090ab9d
Install btrfs-progs and omit systemd in dracut because it fails (surprise lol) 2020-10-11 21:45:26 +02:00
oddlama 19b4f1d80c
Added systemd's version of enabling services 2020-10-10 17:08:54 +02:00
oddlama fdbc6fb3aa
cache lsblk output 2020-10-08 22:16:26 +02:00
oddlama 87b75b2466
Add debug 2020-10-06 21:26:13 +02:00
oddlama 6f427dc92e
Systemd is such a lovely tool. It cannot run hostnamectl/localectl/timedatectl without pid 1. 2020-10-06 19:25:10 +02:00
oddlama ed87a77c13
Added proper btrfs mount options 2020-10-05 22:28:32 +02:00
oddlama e1fc6cf9eb
Fixed old use of $id in disk_create_luks 2020-10-03 19:10:54 +02:00
oddlama 1c476cef17
systemd's setup deviates. #1 2020-10-03 19:04:55 +02:00
oddlama c61515e4e5
Fix missing luks argument evaluation 2020-10-03 18:29:09 +02:00
oddlama 6859a384f6
Print directly used devices 2020-10-03 17:59:45 +02:00
oddlama 627289d911
Actually using root_id would be great 2020-10-03 16:42:03 +02:00
oddlama 89cbd4ae9c
Minor typs and fixes 2020-10-03 16:40:47 +02:00
oddlama 64251a3d31
WIP: Implement btrfs raid layout 2020-10-03 16:32:14 +02:00
oddlama 19c030c4b2
Implement btrfs 2020-10-01 15:46:51 +02:00
oddlama fad5c06199
fstab swap entry by uuid 2020-05-02 12:22:43 +02:00
oddlama 07db67534b
Better vfat fstab entry (permission masks) 2020-05-01 12:15:37 +02:00
oddlama 56cea7d8ee
Create dracut with default modules; fix initramfs.img location in syslinux.cfg 2020-04-25 22:37:50 +02:00
oddlama 2c7c804105
Fixed missing uuid resolve in dracut cmdline generation 2020-04-25 20:17:24 +02:00
oddlama cd078400b8
change bios partition mountpoint to /boot/bios to prevent automatic partition filling 2020-04-25 20:15:16 +02:00
oddlama fceb479402
Fix bug in fstab generation 2020-04-25 20:12:00 +02:00
oddlama 2420251b28
Replace link with copy because vfat can handle links. 2020-04-25 18:48:48 +02:00
oddlama 18674a4b0c
UUID based fstab 2020-04-25 18:06:38 +02:00
oddlama ac5d8f1645
Added vmlinuz syslinux.cfg generatoin and bios link 2020-04-25 17:56:04 +02:00
oddlama bbece4293a
Fixed syslinux installation directory 2020-04-25 16:38:55 +02:00
oddlama b5b82edd4d
Removed RESOLVABLE_MAP_DIR 2020-04-25 15:30:29 +02:00
oddlama db1918e6d5
Added missing conjunction 2020-04-25 15:27:32 +02:00
oddlama 9439c07b28
make ADDITIONAL_PACKAGES an bash array 2020-04-25 15:24:24 +02:00
oddlama f2909a7c72
Added dracut cmdline generation 2020-04-25 15:12:35 +02:00
oddlama 2b323d0c0d
Removed need to save resolve entries altogether; WIP: Dracut integration 2020-04-24 23:02:00 +02:00
oddlama 21ff831af0
install mdadm on chrooted system when raid is used 2020-04-23 23:56:53 +02:00
oddlama cf0413f948
Forgot to remove a quote in output 2020-04-23 23:19:11 +02:00
oddlama b1c4d9d40e
Removed need for internally stored id->device map 2020-04-23 23:15:41 +02:00
oddlama 048b39ffe0
Fixed bug in map saving 2020-04-23 22:31:18 +02:00
oddlama 4c376dae12
fixed case mistake 2020-04-23 21:08:36 +02:00
oddlama 826f232807
Export some crucial variables 2020-04-23 21:06:22 +02:00
oddlama 38437daebd
Follow upstream rename of vanilla-kernel-bin to gentoo-kernel-bin 2020-04-23 19:24:33 +02:00
oddlama f40334f9be
Manually save and restore mapped ids and devices 2020-04-23 17:42:23 +02:00
oddlama 2274c3f7c2
Added disk resolvable saving and loading 2020-04-23 17:32:36 +02:00
oddlama b80d27e467
Export important disk variables 2020-04-23 17:07:13 +02:00
oddlama 00cf2ce260
global DISK_ID_TO_RESOLVABLE 2020-04-23 16:53:31 +02:00
oddlama ff31e4f1b3
Added overwriting for luks header backups 2020-04-23 16:25:34 +02:00
oddlama 88ad973072
Replaced old PARTITION_UUID variables with new disk id system 2020-04-22 23:48:36 +02:00
oddlama 486d22db79
Added luks creation with keyfile support 2020-04-22 23:08:11 +02:00
oddlama 8a0f83b4e9
Fixed missing device resolve on formatting 2020-04-22 12:28:47 +02:00
oddlama 3f80df8695
Fixed wrong error messages 2020-04-21 23:45:55 +02:00
oddlama d203dfc6c3
Made mdadm uuids discoverable 2020-04-21 23:41:27 +02:00
oddlama cfcefae1ec
Fixed mdadm invocation, added raid names 2020-04-21 23:29:06 +02:00
oddlama 9133dcb37c
Fixed PTUUID ambiguity leading to blkid not showing results 2020-04-21 23:15:29 +02:00
oddlama 265851cbc8
Fixed type empty when using efi default 2020-04-21 22:13:13 +02:00
oddlama a334d50921
Fixed efi being the default type 2020-04-21 22:12:18 +02:00
oddlama 119cdd53ba
Fixed wrong known_arguments 2020-04-21 22:04:39 +02:00
oddlama 61293f149b
Added bios mode for layout creation 2020-04-21 21:52:46 +02:00
oddlama 29a7b8a183
Added blkid device resolve by PTUUID 2020-04-21 20:58:21 +02:00
oddlama bab787cbb7
Fixed subscript bug 2020-04-21 20:51:11 +02:00
oddlama bae6327c59
Added sylinux installation for bios systems 2020-04-21 20:48:23 +02:00
oddlama 25adbb0b68
Fixed missing conjunction; move preprocess_config into main.sh 2020-04-21 18:59:49 +02:00
oddlama 506bb9acf8
Move functions to internal_config.sh; fixed regex 2020-04-21 18:43:17 +02:00
oddlama 9b854df006
Added persistent uuids across repeated runs 2020-04-21 18:38:46 +02:00
oddlama 99491a3e22
Untested: Implemented new disk configuration system 2020-04-21 14:33:42 +02:00
oddlama 7136079ad3
Added real pretty print of disk changes 2020-04-21 00:46:27 +02:00
oddlama 7effe7f76b
WIP: Adding framework for more sophisticated disk setups 2020-04-19 21:34:36 +02:00
oddlama 00fe9bc553
Added set -uo pipefail 2020-04-16 23:19:33 +02:00
oddlama 95977f18c1
add ansible to wheel group, necessary for using "su" 2020-01-17 18:15:12 +01:00
oddlama 675d61b012
Add sshusers group as the only group for ssh access 2020-01-13 22:56:16 +01:00
oddlama 0d51f13e97
Added gentoolkit to default install 2020-01-09 11:51:36 +01:00
oddlama 53a4d1cd37
Rename to gentoo-install 2020-01-08 18:21:01 +01:00
oddlama 03a117f201
Updated readme; Conditionalized sshd installation 2020-01-06 21:34:44 +01:00
oddlama 08f815a3f1
Try password set to be sure the user can intervene 2020-01-06 18:26:11 +01:00
oddlama 527a9e6b0a
Use binary vanilla kernel 2020-01-06 18:20:47 +01:00
oddlama f07929d0d6
Added option for HOSTNAME; chown ansible home. 2020-01-06 16:13:42 +01:00
oddlama a352a5d703
Mount efivars if not mounted; Umount root fs all when done. 2020-01-06 01:09:09 +01:00
oddlama be0e36b45b
Fixed wrapping issue because of PS1 2020-01-06 00:38:39 +01:00
oddlama 8af50eb142
Finished efibootmgr execution; Added installation of sshd, dhcpcd, ansible. Added mirrorselect. 2020-01-06 00:35:15 +01:00
oddlama 6c47a73d75
Install vanilla kernel. 2020-01-04 21:55:42 +01:00
oddlama 7deede64eb
Fixed bug in chroot mount preparation (--rslave not occurring) 2020-01-04 18:33:41 +01:00
oddlama 065546debf
Better PS1 2020-01-04 14:43:16 +01:00
oddlama 6b72474053
Fixed missing >&3 conversion after log removal 2020-01-04 14:19:21 +01:00
oddlama dcf4498821
Disable logging, as it caused too many side effects. Use tmux or screen on the live system. 2020-01-04 14:15:27 +01:00
oddlama 0c3ca37792
Display promt in try properly 2020-01-04 13:31:39 +01:00
oddlama 97fd3e77ea
Avoiding infinite loops seems reasonable 2020-01-04 13:27:12 +01:00
oddlama 23769585dc
Added more options to try 2020-01-04 13:09:29 +01:00
oddlama 0d952d5a34
Added try operation 2020-01-04 12:55:31 +01:00
oddlama 54f7b0f322
Added timezone and locale settings 2020-01-03 23:48:49 +01:00
oddlama c4d21647ad
Close fd 3 when disabling logging 2020-01-03 00:42:31 +01:00
oddlama 4df94e6c3d
Fixed using unbound directory in chroot 2020-01-03 00:31:44 +01:00
oddlama e47ffb0700
Flush stdin before ask(); implement safe ctrl-c 2020-01-03 00:29:17 +01:00
oddlama 161afbc285
Added chroot indicator 2020-01-02 23:56:36 +01:00
oddlama b3cf81f95d
Disable logging before chrooting 2020-01-02 23:42:45 +01:00
oddlama a5e8476352
Implemented script logging, export parallel compilation paramters in chroot 2020-01-02 23:28:16 +01:00
oddlama 76bf36f20b
Installation script until stage3 extraction and chroot complete 2019-12-31 16:28:42 +01:00