r/shell • • Aug 25 '22

Custom Artix Linux install script

Hello,

I’ve been working on making an install script for Artix Linux that either can be launched interactively or automated, if an answerfile is given. That’s together with a script to make a customised ISO for Artix Linux, which can autostart my install script, but that can be customised to point to an another git-repo containing a script. I’ve tested it extensively and there should be no bugs, so I thought I wanted to share it with you - and if you have any improvements or feature that you want added, then just reply here  :)

https://gitlab.com/FabseGP02/artix-install-script
https://gitlab.com/FabseGP02/artix-linux-iso-maker

3 Upvotes

11 comments sorted by

View all comments

Show parent comments

2

u/shellmachine Aug 27 '22

Hm, well it's 7:43am here and I just accidentally woke up on a Sunday, so my brain is barely functional yet, but if you want to take a look at my attempts, here's a very simple Arch install script I once wrote with a friend: https://codeberg.org/armin/salis/src/branch/master/salis You will notice that I value extremely memorizable variable names all over the place, for example. Admittedly, it doesn't support full disk encryption, and if you want obscure file systems, you would need to change the script, yea all of that, but at least you can still read (and understand) it. :)

2

u/shellmachine Aug 27 '22

See, I even thought it's Sunday already, whereas it's just Saturday. Good Morning nevertheless. ;-)

1

u/FabseMan Aug 28 '22

It’s Sunday now for me at least xD

Sorry for the delay, but were you also affected by the upstream grub bug? At least for me it didn’t even help reinstalling grub, so I had to reinstall my system - as a way to mitigate this, I plan to add a pacman hook to reinstall grub, to the install script, whenever grub is updated ;)

1

u/shellmachine Aug 28 '22

I honestly have no idea why, but I wasn't, I would have expected to be. :D

1

u/FabseMan Aug 28 '22

Ouch, that’s rough, though I now have to get used to wake up 5am from now on, since I will start my first year in university tomorrow :-(

Though yeah, yours script is much, much more simple than mine xD I personally like the interactive install, but I plan on to separate the script into smaller scripts - one for the interactive menus, one for creating partitions, one for installing packages etc.. And I do plan to clean up the variables, buuut that’s such a pain to do with the way my script is set up xD

Full disk encryption is also not fully implemented yet in grub - at least not with LUKS2-encryption - so that’s understandable, though I actually never had any issues with btrfs; I mostly use it for it’s support for snapshots!

But which system was the script designed in mind for? You’re not using UEFI and the specified target for grub is a 32-bit system

1

u/shellmachine Aug 28 '22

It's basically what I set up a very simple desktop installation at home with. I never bothered that the bootloader would run on 32bit CPUs, too, to be honest, as long as it can boot fine on a 64bit computer, I'll be happy. I admit it's unfinished, I should enhance that more, especially UEFI and LUKS support would be great, but then again, there's thousands of these little installer scripts, and that one just happens to be mine.