Coder Social home page Coder Social logo

naund / easy-arch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from classy-giraffe/easy-arch

0.0 0.0 0.0 249 KB

Script for boostrapping Arch Linux with BTRFS, snapshots and LUKS encryption (UEFI only).

Home Page: https://classy-giraffe.github.io/easy-arch

License: MIT License

Shell 100.00%

easy-arch's Introduction

Introduction

easy-arch is a script made in order to boostrap a basic Arch Linux environment with snapshots and encryption by using a fully automated process (UEFI only).

How does it work?

  1. Download an Arch Linux ISO from here
  2. Flash the ISO onto an USB Flash Drive.
  3. Boot the live environment.
  4. Set the keyboard layout by using loadkeys.
  5. Connect to the internet.
  6. Run this bash <(curl -sL git.io/JtRu2).

Partitions layout

Partition Number Label Size Mountpoint Filesystem
1 ESP 512 MiB /boot/ FAT32
2 Cryptroot Rest of the disk / BTRFS Encrypted (LUKS2)

The partitions layout is pretty straightforward, it's inspired by this section of the Arch Wiki. As you can see there's just a couple of partitions:

  1. A FAT32, 512MiB sized, mounted at /boot/efi for the ESP.
  2. A LUKS2 encrypted container, which takes the rest of the disk space, mounted at / for the rootfs.

BTRFS subvolumes layout

Subvolume Number Subvolume Name Mountpoint
1 @ /
2 @home /home
3 @snapshots /.snapshots
4 @var_log /var/log

The BTRFS subvolumes layout follows the traditional and suggested layout used by Snapper, you can find it here. Here's a brief explanation of the BTRFS layout I chose:

  1. @ mounted at /.
  2. @home mounted at /home.
  3. @snapshots mounted at /.snapshots.
  4. @var_log mounted at /var/log.

easy-arch's People

Contributors

classy-giraffe avatar isparsh avatar naund avatar tommytran732 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.