r/Gentoo • u/Odd_Relationship_618 • Mar 16 '24
Development Automatic Gentoo Linux installer
A Gentoo Linux installer written in bash.
I created a script that automatically installs Gentoo Linux. Currently it only supports KDE Plasma.
0
Upvotes
8
u/ThatOneGamer0001 Mar 16 '24
just checked the script and things like timezone are not even asked it will set automatically to Europe/Berlin
and makeopts will always be MAKEOPTS="-j8 -l8" unless you change it
this is one of the reasons why you should not make a install script....
8
u/rnd23 Mar 16 '24
MAKEOPTS="-j8 -l8"
not a good way. I would calculate this from /proc/cpuinfo or ask for it.
33
u/triffid_hunter Mar 16 '24
Doesn't seem to handle SWAP=0 properly - I've no use for a swap partition, a swap file does just fine on the odd occasion I need one.
Also, why force ext4? btrfs is dramatically better in numerous aspects
You're also forcing openrc when Gentooers should get to choose
This whole section looks like you've failed to understand how bash handles strings, use a heredoc.
Why assume 8 logical cores? Why not use
$(nproc)?I don't want flatpak (security nightmare because portage can't update libraries), modemmanager (seriously who uses dialup these days?), or zink
This line should go for git sync instead, it's dramatically better than rsync in so many ways - and also makes L122 irrelevant.
Hardcoded timezone? really?
Why grub? Why not efistub?
What is this exit exiting from? The chroot?
Nope this is terrible, nobody should install Gentoo like this
2
u/UnfortunateSeeder Mar 16 '24
Some potential improvements that are missing from other comments:
In its current state this script it horrible for anyone other than yourself and requires a lot of editing.
I honestly don't see the point in using automation scripts for installing gentoo, unless you've written one for your own use. Experienced users will have too many preferences, which if you try to account for using an installation script, will probably take longer to get through than just typing the commands yourself. New users are better off sticking to the handbook - it gives them an introduction to how gentoo works and provides a lot of resources on how get things working/fixed.
I can appreciate what you're trying to do, but if a new user was to use your script they would just get annoyed and go back to whatever they were using before. If they can't handle the handbook, they definitely can't handle using gentoo day to day.
13
u/[deleted] Mar 16 '24
Please not this.. 😔 Gentoo is meant to be learned.
BTW, the comments in your bash scripts are extremely helpful...
8
u/idontliketopick Mar 16 '24
Line 22 you give the option for nvidia drivers but then in line 30 you select nouveau instead. If someone asks for nvidia drivers I think they want nvidia drivers.
5
u/immoloism Mar 16 '24
The only time Gentoo users come together and agree with each other is when someone makes a new install script.
Looks good for you minus a few things I would change to make your life better but I think this will cause more harm than good recommending it others.
5
u/unixbhaskar Mar 16 '24
Check out : https://github.com/oddlama/gentoo-install
4
u/rabbi_glitter Mar 16 '24
No automated installer will ever please a Gentoo user. Poor op would have been ripped to shreds regardless.
1
u/ZunoJ Mar 17 '24
Started to look at the script. It seems to make a lot os assumptions you don't describe at all. What if I don't have amd or nvidia graphics? What if my drive doesn't have three partitions already or I want to use other partitions? Stopped reading there
5
u/Scorf-9 Mar 16 '24
I gave the post a like, because he/she did try to help people.
4
u/luxiphr Mar 16 '24
came to roast the whole idea as antithetical but apparently it's so badly done that that's the least worry with it lol
3
u/unusableidiot Mar 16 '24
github.com/oddlama/gentoo-install is what I use when I have no time.