{"id":15007208,"url":"https://github.com/mortyr45/archlinux-installer","last_synced_at":"2026-01-08T06:51:34.374Z","repository":{"id":172983876,"uuid":"649163595","full_name":"mortyr45/archlinux-installer","owner":"mortyr45","description":"An opinionated, optimistic installer for the Archlinux operating system.","archived":false,"fork":false,"pushed_at":"2024-09-18T10:31:16.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T10:51:13.262Z","etag":null,"topics":["arch-linux-unofficial","archlinux","archlinux-installer","linux","linux-distribution","linux-distro","linux-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mortyr45.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-04T01:43:31.000Z","updated_at":"2024-09-18T10:31:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e7b4263-9700-4a27-9230-3cbe62ff98da","html_url":"https://github.com/mortyr45/archlinux-installer","commit_stats":null,"previous_names":["mortyr45/archlinux-installer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mortyr45%2Farchlinux-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mortyr45%2Farchlinux-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mortyr45%2Farchlinux-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mortyr45%2Farchlinux-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mortyr45","download_url":"https://codeload.github.com/mortyr45/archlinux-installer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253638814,"owners_count":21940429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arch-linux-unofficial","archlinux","archlinux-installer","linux","linux-distribution","linux-distro","linux-server"],"created_at":"2024-09-24T19:05:29.544Z","updated_at":"2026-01-08T06:51:34.347Z","avatar_url":"https://github.com/mortyr45.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Under heavy rework! PLS do not use ATM!**\n\nArchlinux install script\n===\n\n*An opinionated, optimistic installer for the Archlinux operating system.*\n\n**Never use scripts you found on the internet blindly!**\n\n## 1. What it does?\n\nThe purpose of this script is to make Archlinux installation a breeze in my preferred way. It consist of two scripts, the `disks.bash` and `installer.bash`.\n\n**This script is not designed for dual-boot!**\n\n## 2. Scripts\n\n### 2.1 disks.bash\n\nThe `disks.bash` script is for formatting the partitions to be used for the installation. It is expected to be run on already created, but empty partitions. It will do the following:\n- Prompt for the partition to be used as EFI and root (/).\n- Prompt if you would like to encrypt the root partition.\n- Formats the EFI partition to FAT32.\n- Formats the root partition (with LUKS if enccryption was chosen).\n- Sets up btrfs subvolumes for the root partition\n    - @ (/)\n    - @home (/home)\n    - @var (/var)\n- Mounts everything under `/mnt`\n\n        / (@)\n        -\u003e /boot/efi (EFI)\n        -\u003e /home (@home)\n        -\u003e /var (@var)\n\n### 2.2 installer.bash\n\nThe `installer.bash` script will create the Archlinux installation. It assumes the necessary partitions are mounted under `/mnt`, and the EFI partition is mounted under `/boot/efi`. The steps are the following:\n- Install the `jq` package for the live environment.\n- Detect the root and EFI partitions.\n- Prompt the user for install options.\n    - Prompt which kernels the user would like to install (kernels from the Archlinux repositories).\n    - Prompt for username and password.\n    - Prompt for hostname.\n    - Prompt additinal features.\n        - `snapper` Set up snapper for automatic backups on system upgrades.\n        - `recovery` Copies the booted Archlinux live iso into the EFI partition, and creates an entry for it in systemd-boot.\n        - `iwd` For connecting to WI-FI networks from the terminal.\n        - `linger` Set up user lingering.\n        - `bluetooth` Set up bluetooth support and cli.\n- Does all the prompted steps, and additionally it will:\n    - Set up locale according to the following:\n        - en_US.UTF-8 for locale.gen.\n        - us-acentos for KEYMAP.\n        - en_US.UTF-8 for LANG, LANGUAGE, LC_ALL.\n        - Sets timezone to UTC.\n    - Configures networking (systemd-resolved and systemd-networkd, ufw)\n        - DNSSEC, DNSOverTLS, Cloudflare DNS.\n        - DHCP for any network other than virtual ethernet.\n        - ufw firewall (deny incoming, allow outgoing and routed).\n    - Configures systemd-boot\n    - Configures mkinitcpio with UKIs (Unified Kernel Image).\n    - Enables services:\n        - systemd-boot-update\n        - systemd-timesyncd\n        - systemd-oomd\n        - systemd-resolved\n        - systemd-networkd\n\nAfter the script finished, the installed system represents my ideal default configuration, but it is most likely not 100% what you want. Do some adjusting by hand, for the repository, or use Ansible to do any additional steps you require.\n\n### 3. How to use?\n\n```bash\nbash \u003c(curl -sL https://raw.githubusercontent.com/mortyr45/archlinux-installer/master/src/disks.bash)\nbash \u003c(curl -sL https://raw.githubusercontent.com/mortyr45/archlinux-installer/master/src/installer.bash)\n```\n\n### 4. If you want to boot your kernel directly\n\nReplace parts appropriately:\n```bash\nefibootmgr --create --disk /dev/sda --part 1 --label \"Arch Linux ($kernel)\" --loader \"\\\\$kernel.efi\" --unicode\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmortyr45%2Farchlinux-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmortyr45%2Farchlinux-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmortyr45%2Farchlinux-installer/lists"}