How can I make an Arch install script?

Greetings,

I have installed Arch probably a dozen times by now, either for distro-hopping or due to me tinkering with configurations that rendered my system unbootable. I have probably memorized the install by now, but it is troublesome when I do want to reinstall it, and I want a way to feel like I have my own special script so I can easily get back in Arch.

I was wondering how to make a bash script that automatically installs Arch Linux when it is executed, with my custom commands and wants. Is there any comprehensive tutorials on how to do this? I was thinking of copying someone's Arch install script and adding my own little niches and details that I usually do with my system, but it would be nicer to learn bash and make my own script.

​

EDIT: Big thank you to everyone who posted their scripts!

Posted Jul 1, 2021, 12:02 AM UTC · edited

7521
Loading comments…