Commit Graph

335 Commits

Author SHA1 Message Date
Le0xFF
92a23c65ab Merge functions in chroot script
Merge set_root, edit_fstab and generate_dracut_conf functions into initial_configuration function
2022-08-28 15:36:06 +02:00
Le0xFF
1942e4cdb6 Generate random key only when choosing GRUB2
If a random key was generated before choosing bootloader, encrypted disk would be automatically unlocked when EFISTUB was choosen as bootloader
2022-08-28 15:12:46 +02:00
Le0xFF
fee1726dcc Fix EFISTUB options
Forgot to look for correct pattern when using sed command
2022-08-28 15:00:33 +02:00
Le0xFF
8c4174ccf6 Cosmetic changes 2022-08-28 14:58:41 +02:00
Le0xFF
cc395f65d7 Try to implement EFISTUB as a possible bootloader
A lot of functions were modified and adapted; also if user choose LUKS2, EFISTUB will be automatically selected. I just hope it will work owo'
2022-08-28 14:25:40 +02:00
Le0xFF
db966e9e54 Avoid lazy unmount, use findmnt instead 2022-08-26 15:32:36 +02:00
Le0xFF
93fe443460 Cosmetic changes 2022-08-26 15:23:03 +02:00
Le0xFF
c04328a523 Cosmetic changes 2022-08-26 15:13:36 +02:00
Le0xFF
9841650994 Fix lvm creation if encryption was not choosen 2022-08-26 15:06:36 +02:00
Le0xFF
a8aa59c84a Cosmetic changes 2022-08-26 15:00:47 +02:00
Le0xFF
c833494e35 Cosmetic changes 2022-08-26 14:49:57 +02:00
Le0xFF
e62b6539f5 Cosmetic changes and minor fixes 2022-08-26 14:45:23 +02:00
Le0xFF
0f7d95e366 Update README to clarify that encryption is now optional 2022-08-26 14:32:49 +02:00
Le0xFF
ebfe37eb5d Try to make encryption optional 2022-08-26 14:29:22 +02:00
Le0xFF
ec88f6da7d Be sure to not to choose the same partition for and 2022-08-26 13:41:26 +02:00
Le0xFF
90df03b36b Try to catch password errors 2022-08-26 13:22:45 +02:00
Le0xFF
a4c90e99c1 Cosmetic changes
And also be sure that user can quit certain loops
2022-08-26 12:48:42 +02:00
Le0xFF
ff30adbb4f Cosmetic changes 2022-08-26 12:30:10 +02:00
Le0xFF
6c14ef6fff Update README with enabling/disabling services information 2022-08-26 12:09:19 +02:00
Le0xFF
6619c6cb5c Add enable_disable_services function
Add a function that let the user choose which already available services enable or disable
2022-08-26 12:08:47 +02:00
Le0xFF
76287b8570 Mount efivars as ArchWiki chroot page suggests 2022-08-26 11:05:20 +02:00
Le0xFF
19b789693e Cosmetic changes and change script name inside the script itself 2022-08-26 10:51:13 +02:00
Le0xFF
52316d2000 Update README with latest added functions 2022-08-26 10:42:24 +02:00
Le0xFF
018bbb756e Cosmetic changes 2022-08-26 10:42:00 +02:00
Le0xFF
b2eb2e088e Add install_additional_packages
Install other packages while being in chroot with the help of xs() function
2022-08-26 10:12:55 +02:00
Le0xFF
02446cf41f Keep unused chroot.sh script updated 2022-08-24 20:45:29 +02:00
Le0xFF
fed131052d Minor fixes 2022-08-24 20:45:01 +02:00
Le0xFF
6ae8811fd1 Clarify that an empty path must be chosen 2022-08-24 20:32:08 +02:00
Le0xFF
1930476cb8 Add information regarding void-packages 2022-08-24 19:54:50 +02:00
Le0xFF
96a10c3cc0 Finally fix void_packages function
Function will only clone void-packages repo and enable restricted packages. It won't bootstrap because xbps-src can't create a chroot environment while being already in a chrooted environment. To see related issues, please see README
2022-08-24 19:54:16 +02:00
Le0xFF
6a6ad2f8f5 We're getting closer
But probably we can't bootstrap xbps-src because it will create a chroot, and chroot inside chroot is not really that good
2022-08-23 22:28:34 +02:00
Le0xFF
aca5ce092c Learn how to use here-document, you idiot
Let's hope this is the right way...
2022-08-23 20:57:05 +02:00
Le0xFF
2d4092205f Maybe escaping every double quotes will work? 2022-08-22 21:31:13 +02:00
Le0xFF
65be8161a1 Let's try a different approach 2022-08-22 20:47:39 +02:00
Le0xFF
845e1dbe0a Minor fix 2022-08-22 20:36:49 +02:00
Le0xFF
a8e58c1d8e Minor fix for void packages bootstrapping 2022-08-22 20:29:04 +02:00
Le0xFF
13f7f16549 Minor fix 2022-08-22 20:15:32 +02:00
Le0xFF
8e4f60e844 Fix typo 2022-08-22 20:12:46 +02:00
Le0xFF
96cf5af6cd Try to fix xbps-src execution 2022-08-22 19:47:33 +02:00
Le0xFF
57ed955d29 Forgot to close if once again 2022-08-22 18:44:30 +02:00
Le0xFF
cc1ae450c7 Try to fix once again void_packages function 2022-08-22 18:37:29 +02:00
Le0xFF
e0f35d9e64 Forgot to close if 2022-08-22 16:29:07 +02:00
Le0xFF
35931e4563 Better check when trying to cloning void-packages 2022-08-22 16:13:53 +02:00
Le0xFF
8ceec402a8 Cosmetic changes 2022-08-22 15:34:10 +02:00
Le0xFF
9617e35d17 Cosmetic changes 2022-08-22 15:31:07 +02:00
Le0xFF
d2bb14d2f7 Minor changes 2022-08-22 15:24:25 +02:00
Le0xFF
2509c99d06 Minor fixes 2022-08-22 15:21:44 +02:00
Le0xFF
da77f6aa3e Finally fix if conditition that checks if user has write access
Also check if user already exists when creating a new user
2022-08-22 15:13:23 +02:00
Le0xFF
fb9c820402 Multilib and non-free repo must be installed to target dir after installing base system 2022-08-22 14:33:08 +02:00
Le0xFF
8f0fb3aee9 Fix if condition when checking if user has write permission to a specific folder 2022-08-22 14:21:18 +02:00