Commit Graph

294 Commits

Author SHA1 Message Date
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
Le0xFF
cfcebbb36e Forgot to negate condition 2022-08-22 13:54:05 +02:00
Le0xFF
467828dd02 Better way to check if user exists or not 2022-08-22 13:52:45 +02:00
Le0xFF
711e9129e4 Fix newuser_yn variable
Avoid a condition where even if a new user was created, void_packages function would skip as well
2022-08-22 13:34:10 +02:00
Le0xFF
e9a4f62400 Fix exiting loop when creating a new user 2022-08-22 13:28:43 +02:00
Le0xFF
b54b9aff89 Cosmetic changes 2022-08-22 13:20:06 +02:00
Le0xFF
7f02dc7473 Add create_user function
Add function that will create as many user as desired and also added void_packages function to normal script flow
2022-08-22 13:06:28 +02:00
Le0xFF
8ad205b708 Add void_packages function
Add function that let user clone void-packages repository. Even if the function is implemented, it won't be used until a function that will create a non-root user will be implemented
2022-08-21 22:17:08 +02:00
Le0xFF
d32c069e41 Enable AppArmor profiles caching 2022-08-21 19:31:53 +02:00
Le0xFF
f7cda6e2e5 Fix zswap at boot
If z3fold driver was not added to dracut configuration, it wouldn't be loaded properly at boot
2022-08-21 19:22:41 +02:00
Le0xFF
611c4800c1 Give a label to swapfile 2022-08-21 18:14:24 +02:00
Le0xFF
371d79f762 Install void repos first, then sync 2022-08-21 17:54:29 +02:00
Le0xFF
a3a288b956 Fix multilib-nonfree repo name 2022-08-21 17:49:50 +02:00
Le0xFF
4a1dfed878 Cosmetic changes 2022-08-21 17:45:34 +02:00
Le0xFF
ef57ad522d Fix typo 2022-08-21 17:43:24 +02:00
Le0xFF
6df893cdbd Check if drive supports trim
Script will now check if the selected drive supports trim and will enable it eventually
2022-08-21 17:39:04 +02:00
Le0xFF
ba73840ea6 Add void repos multilib and nonfree during installation, as requested in issue #1 2022-08-21 17:08:42 +02:00
Le0xFF
61614b5327 Install AppArmor and configure it during chroot 2022-08-21 17:00:37 +02:00
Le0xFF
a3c2be0599 Specify that swapfile size must be in GB 2022-08-11 20:37:40 +02:00
Le0xFF
b9e7369f86 Shellcheck on chroot.sh script 2022-08-11 18:32:24 +02:00
Le0xFF
43484e7fcc Keep chroot.sh up to date just in case 2022-08-11 18:31:58 +02:00
Le0xFF
7b11e4fa9a Fix indentation 2022-08-11 18:25:27 +02:00
Le0xFF
87b905411d Avoid ls|grep as shellcheck suggests 2022-08-11 18:22:09 +02:00
Le0xFF
6af628cf73 Use z3fold as zpool for zswap 2022-08-10 15:40:28 +02:00
Le0xFF
f706b56fd9 Minor changes 2022-08-10 12:42:32 +02:00
Le0xFF
43008df3e6 Clarify what swapfile could be used for 2022-08-09 21:50:21 +02:00
Le0xFF
02b210171e Add zswap information to README as well 2022-08-09 21:45:10 +02:00
Le0xFF
36d5f6e6a5 Avoid code duplication due to choice on using lvm or not 2022-08-09 21:16:25 +02:00
Le0xFF
3a2a1199b9 Cosmetic changes 2022-08-09 20:43:13 +02:00
Le0xFF
dd0ed7f7f8 Cosmetic changes 2022-08-09 20:32:51 +02:00
Le0xFF
f8e6fb9718 Enabling zswap when creating swapfile 2022-08-09 20:18:04 +02:00
Le0xFF
5e2acaf31d Also enable grub-btrfs service at boot 2022-08-09 17:55:12 +02:00
Le0xFF
acc5fd7809 Cosmetic changes 2022-08-08 19:55:50 +02:00
Le0xFF
eaa4bafa07 Fix ram_size variable for swapfile creation 2022-08-08 19:42:44 +02:00
Le0xFF
667fbe88ba Fix typo 2022-08-08 18:41:43 +02:00
Le0xFF
ea418e7515 Let user choose swapfile dimensions 2022-08-08 18:28:24 +02:00
Le0xFF
e234a1c167 Unmount swap file after creating it 2022-08-07 18:58:38 +02:00
Le0xFF
92be6e4d48 Fix typos 2022-08-07 18:41:17 +02:00
Le0xFF
be83629254 Add creation of C program to main script flow 2022-08-07 18:24:30 +02:00
Le0xFF
d4b7e4cd10 Fix creation of C program 2022-08-07 18:22:37 +02:00
Le0xFF
ce5ee51217 Add create_swapfile function to main script flow 2022-08-07 18:06:10 +02:00
Le0xFF
dd1ec445d4 Delete C program too when killing script 2022-08-07 17:48:11 +02:00