Commit Graph

313 Commits

Author SHA1 Message Date
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
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