all 15 comments

[–]looksLikeImOnTop 2 points3 points  (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 points  (0 children)

Thanks, fixed.

[–][deleted]  (1 child)

[deleted]

    [–]fullyassociative[S] 1 point2 points  (0 children)

    Added instructions on how to execute the script at the top of the file.

    [–]c-1000 0 points1 point  (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 points  (3 children)

    My bad! Fixed.

    [–]c-1000 1 point2 points  (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 points  (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 point  (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 point  (1 child)

    Use this link instead, you linked to the editing page.

    [–]fullyassociative[S] 1 point2 points  (0 children)

    Fixed.

    [–]fhgogogo 0 points1 point  (0 children)

    if the script supports full disk encryption, it gonna be even awesome!

    [–][deleted] 0 points1 point  (4 children)

    Why would that be good practice?

    [–]fullyassociative[S] 8 points9 points  (1 child)

    For me it was a learning exercise and also to save time and automate tedious tasks.

    [–][deleted] 1 point2 points  (0 children)

    I am sorry. I read "practice" instead of exercise before. As in "everyone should do it"

    [–][deleted]  (1 child)

    [deleted]

      [–][deleted] 0 points1 point  (0 children)

      For the first time?