picodotdev / alis

Arch Linux Install Script (or alis, also known as the Arch Linux executable installation guide and wiki) installs an unattended, automated and customized Arch Linux system.
https://picodotdev.github.io/alis/
GNU General Public License v3.0
823 stars 319 forks source link

[FEATURE REQUEST] Post installation commands #101

Closed silvioprog closed 3 years ago

silvioprog commented 4 years ago

Hi.

It would be nice some option like POST_INSTALL_COMMANDS. It would be useful to solve issues like https://github.com/picodotdev/alis/issues/100, for example:

POST_INSTALL_COMMANDS=("pacman -Rcns gnome-extra" "pacman -S libmicrohttpd")

cheers

picodotdev commented 4 years ago

I have doubts with this, could be useful but I dont see a good example. In my point of view the suggested POST_INSTALL_COMMANDS should not be used to undo things that the script does, in first place the script should not do that things, on other side installing custom packages is something that currently is allowed. These command examples not gives me a reason to implement it. Also I would prefer that any complex customizations maybe is better to do after installation or implemented by the script natively if are useful for anyone. But this is my opinion.

silvioprog commented 4 years ago

Another possible option to use with POST_INSTALL_COMMANDS would be execute some commands to configure the system.

karimone commented 3 years ago

A simple solution is: fork the repo, add a file.sh and execute it post-install.

picodotdev commented 3 years ago

A simple solution is: fork the repo, add a file.sh and execute it post-install.

Yes, I think better to do this once alis reboots the system with a custom sh as suggested or any other provision tool and not within an arch-chroot.