oddlama / gentoo-install

A gentoo installer with a TUI interface that supports systemd and OpenRC, EFI and BIOS, as well as variable disk layouts using ext4, zfs, btrfs, luks and mdraid.
MIT License
510 stars 72 forks source link

add eselect repos... #37

Closed necrose99 closed 2 years ago

necrose99 commented 2 years ago

( REF:https://wiki.gentoo.org/wiki/Eselect/Repository app-eselect/eselect-repository)

Add repos to config

INSIDE : eselect repository enable foo else list of insider repos

eselect repository enable name nameb etc..

Outside : more than likely on arm64 or Own repos... name: / path ie.. git svn etc...

eselect repository add oddlama-lay git https://github.com/oddlama/overlay

add emerge --sync {$overlay/s}

add list/s of overlays to add or enable...

emerge foo:???overlay and done.. to add packages...

oddlama commented 2 years ago

If I understand your request correctly, you would like to have the installer add a list of overlays to the bootstrapped gentoo system, correct? Can you elaborate on why it is a necessity for you to have this as a part of the installer opposed to simply adding them afterwards?

oddlama commented 2 years ago

This issue seems to be stale - I'd gladly discuss this with you, but I need additional information. I'll close this around end of May in case nothing is added.

necrose99 commented 2 years ago

mainly if one has a few base packages ie laptop support... , add some overlays / deploy those packages .. ie ASUS/ROG related pgs for keyboad hot keys /backlights deploy...

sure you could do after the fact , however if you wanted to just script the base layout for some systems ... ie my laptop vs desktop .... add base overlays .... ie pentoo , ASUS hardware , Logitech G213 kb to desktop , and kb is known to be irritatingly flaky till you run ebuild/s for it... forcing the spare/unplug/replug kb till it behaves... having them deploy and behave on 11st reboot a real plus.

or Single board : ie RPI4 / O-droid etc , ensure all required pkgs are deployed.. ie Arm64 related ... ie GPIO or other easy to forget support pkgs... so after install / reboot everything just runs...

anyways if theirs common overlays or favorites could feed a quite small list in > to eselect repository enable

anyways for the nuke/pave/rebuild/restore processes : automate as much as one can..

anyways a convenance / nice to have feature, on base installs

oddlama commented 2 years ago

Thank you for elaborating, unfortunately I don't think I want to implement and maintain this. I'd like to keep the installer an installer and not venture too far into it becoming a full system bootstrapping and automation framework. Otherwise I fear there will quickly be a demand for the script to also add users, configure complex network settings, update world automatically, installing sensible default configurations for bash, zsh etc. - you see where I'm going with this. All of which I deem far out-of-scope for a mere bootstrapping installer.

Once ssh is running (which the script can do), you are much much better off by using existing tools to do all of the userspace configuration. I would highly recommend you to have a look at ansible and friends, which are well-suited tools for what you are asking. You installation process would not become more complicated by that - just one more command after bootstrapping and you can enforce any state on your final system. Of course you are free to implement this functionality in your own fork of gentoo-install if that is really what you are looking for.