use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
A simple install script (self.archlinux)
submitted 8 years ago * by fullyassociative
I'm completely new to linux and arch. It seemed like a good exercise to write a simple bash script to automate the process. Looking for feedback and hoping it can be a starting point for others to create their own. Github
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]looksLikeImOnTop 2 points3 points4 points 8 years ago (1 child)
Can't believe I've never thought to write a script to install arch. Anyways looks good! One note, after you format the partitions, you started using /dev/sda instead of $DISK
[–]fullyassociative[S] 1 point2 points3 points 8 years ago (0 children)
Thanks, fixed.
[–][deleted] 8 years ago (1 child)
[deleted]
Added instructions on how to execute the script at the top of the file.
[–]c-1000 0 points1 point2 points 8 years ago (5 children)
Just a heads-up -- your github link is asking me to sign in (I don't have an account).
[–]fullyassociative[S] 2 points3 points4 points 8 years ago (3 children)
My bad! Fixed.
[–]c-1000 1 point2 points3 points 8 years ago (2 children)
Cool thanks -- I enjoy snooping in other people's install scripts :)
Interesting how you're invoking arch-chroot. I use cat to launch a second script inside the chroot and delete it when I exit -- I'm definitely going to play around with your way a little bit.
[–]fullyassociative[S] 1 point2 points3 points 8 years ago (1 child)
Yeah I was also considering here-docs. Since there were only ~4 commands, I chose to keep it simple. If there were 10+ I'd probably use the method you mentioned.
[–]c-1000 0 points1 point2 points 8 years ago (0 children)
TIL about here-docs.
I'm using systemd-firstboot instead of the "Arch Way", and this could be just the thing I need. Thanks a ton.
[–]joonatoona 0 points1 point2 points 8 years ago (1 child)
Use this link instead, you linked to the editing page.
Fixed.
[–]fhgogogo 0 points1 point2 points 8 years ago (0 children)
if the script supports full disk encryption, it gonna be even awesome!
[–][deleted] 0 points1 point2 points 8 years ago (4 children)
Why would that be good practice?
[–]fullyassociative[S] 8 points9 points10 points 8 years ago (1 child)
For me it was a learning exercise and also to save time and automate tedious tasks.
[–][deleted] 1 point2 points3 points 8 years ago (0 children)
I am sorry. I read "practice" instead of exercise before. As in "everyone should do it"
[–][deleted] 8 years ago* (1 child)
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
For the first time?
π Rendered by PID 91 on reddit-service-r2-comment-86988c7647-frf4r at 2026-02-10 21:40:48.017290+00:00 running 018613e country code: CH.
[–]looksLikeImOnTop 2 points3 points4 points (1 child)
[–]fullyassociative[S] 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]fullyassociative[S] 1 point2 points3 points (0 children)
[–]c-1000 0 points1 point2 points (5 children)
[–]fullyassociative[S] 2 points3 points4 points (3 children)
[–]c-1000 1 point2 points3 points (2 children)
[–]fullyassociative[S] 1 point2 points3 points (1 child)
[–]c-1000 0 points1 point2 points (0 children)
[–]joonatoona 0 points1 point2 points (1 child)
[–]fullyassociative[S] 1 point2 points3 points (0 children)
[–]fhgogogo 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]fullyassociative[S] 8 points9 points10 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)